Fix pop-over buttons always getting space for icon

This commit is contained in:
Campbell Barton 2018-06-13 11:20:50 +02:00
parent 2a5d4d7573
commit e4ab04b8bb
1 changed files with 4 additions and 1 deletions

View File

@ -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 {