UI: Popover Button Padding for Arrow #119181

Merged
Harley Acheson merged 2 commits from Harley/blender:PopoverButtonPadding into main 2024-03-07 22:02:05 +01:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit c0d8126190 - Show all commits

View File

@ -2995,9 +2995,7 @@ static uiBut *ui_item_menu(uiLayout *layout,
uiTextIconPadFactor pad_factor = ui_text_pad_compact;
/* Ugly! Extra padding in specific circumstances. */
if (layout->root->type == UI_LAYOUT_HEADER ||
(layout->root->type == UI_LAYOUT_PANEL && force_menu))
{
if (layout->root->type == UI_LAYOUT_HEADER || force_menu) {
if (icon == ICON_NONE && force_menu) {
/* pass */
}