Fix pop-over buttons always getting space for icon
This commit is contained in:
parent
2a5d4d7573
commit
e4ab04b8bb
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue