From 21aadaecdd0b1f48fcbdfd3e2269c39315dc18fd Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 22 Mar 2005 15:56:58 +0000 Subject: [PATCH] Small fix; when pulldown menus are too large to display (they get aligned with top/bottom to active button) the menu aligns from bottom of blender window. This already happened for File->Export menu --- source/blender/src/interface.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index c4e06851776..1227c557f16 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -697,6 +697,12 @@ static void ui_positionblock(uiBlock *block, uiBut *but) } } + /* and now we handle the exception; no space below or to right */ + if(top==0 && down==0) { + // align with bottom of screen + yof= ysize; + } + // apply requested offset in the block xof += block->xofs/block->aspect; yof += block->yofs/block->aspect;