Page MenuHome

Collapsed Menu Alignment

Authored by Harley Acheson (harley) on Jan 1 2019, 10:50 PM.



A previous patch of mine made it so popovers and enums had consistent look and widths:

Part of that involved changing the icon alignment so the icon placement would look the same in both types.

Unfortunately that caused one small issue. If you were to right-click on a header and select "Collapse Menus" you would see that the resulting small "hamburger" icon button is misaligned, as shown on the top of the following image.

This patch fixes that one problem without affecting anything else. With this the change to right alignment only happens for icon-only menus when the "force_menu" is also true (so will be adding a dropdown arrow). In other cases it can remain middle-aligned so the collapsed hamburger icon looks good again.

Diff Detail

rB Blender

Event Timeline

This revision is now accepted and ready to land.Jan 4 2019, 3:28 PM
This revision was automatically updated to reflect the committed changes.