Small fix; when pulldown menus are too large to display (they get aligned
authorTon Roosendaal <ton@blender.org>
Tue, 22 Mar 2005 15:56:58 +0000 (15:56 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 22 Mar 2005 15:56:58 +0000 (15:56 +0000)
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

index c4e06851776e53718d1f4695f8da13067b12767e..1227c557f1619f9606dc74081cceae683707edb8 100644 (file)
@@ -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;