UI: fixes for 3D viewport popovers moving / flipping on edits.
* Ensure popover does not change direction or location. * Open popover towards the relevant editor, like pulldown menus. * Use a bigger maximum assumed size to deal with some corner cases. * Do proper 3D viewport header refresh on shading mode changes.
This commit is contained in:
@@ -4274,7 +4274,7 @@ static int widget_roundbox_set(uiBut *but, rcti *rect)
|
||||
/* alignment */
|
||||
if ((but->drawflag & UI_BUT_ALIGN) && but->type != UI_BTYPE_PULLDOWN) {
|
||||
|
||||
/* ui_block_position has this correction too, keep in sync */
|
||||
/* ui_popup_block_position has this correction too, keep in sync */
|
||||
if (but->drawflag & (UI_BUT_ALIGN_TOP | UI_BUT_ALIGN_STITCH_TOP))
|
||||
rect->ymax += U.pixelsize;
|
||||
if (but->drawflag & (UI_BUT_ALIGN_LEFT | UI_BUT_ALIGN_STITCH_LEFT))
|
||||
|
||||
Reference in New Issue
Block a user