Fix pop-over buttons always getting space for icon
This commit is contained in:
@@ -1985,7 +1985,10 @@ static uiBut *ui_item_menu(
|
||||
h = UI_UNIT_Y;
|
||||
|
||||
if (layout->root->type == UI_LAYOUT_HEADER) { /* ugly .. */
|
||||
if (force_menu) {
|
||||
if (icon == ICON_NONE) {
|
||||
/* pass */
|
||||
}
|
||||
else if (force_menu) {
|
||||
w += UI_UNIT_X;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user