diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-07 06:03:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-07 06:03:31 +0400 |
commit | 07a3ebbd38650223f2a3ea06cf5ff778bdb5662a (patch) | |
tree | b9a13d372062de4fb01fdd3802bc9c28794a9c4b /source/blender/editors/include/UI_interface.h | |
parent | 808c2d840e296ffb26750185b27a2eb94b9eee48 (diff) |
fix for annoyance where header menus would get scroller arrows added because it would be clamped within the screen a few pixels.
This was caused from using theme shadow setting to clip the popups and a hard-coded value to translate the popup within screen bounds - these values should be the same.
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index c52b1ebb971..434fb58184f 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -85,6 +85,9 @@ typedef struct uiLayout uiLayout; #define UI_MAX_DRAW_STR 400 #define UI_MAX_NAME_STR 128 +/* use for clamping popups within the screen */ +#define UI_SCREEN_MARGIN 10 + /* uiBlock->dt */ #define UI_EMBOSS 0 /* use widget style for drawing */ #define UI_EMBOSSN 1 /* Nothing, only icon and/or text */ |