Blender Git Commit Log
Git Commits -> Revision 2dd040a
Revision 2dd040a by Julian Eisel (master) March 18, 2021, 14:09 (GMT) |
UI: Dynamically increase data-block name button size if there's space Data-block selectors (or other selectors using the `UILayout.teamplate_search` or `UILayout.template_search_preview`) in headers used a fixed size width for the name button. Often that meant the text would be clipped to fit even though there was plenty of whitespace surrounding the data-block selector. Now the name button can increase in width with the contained string, clamped to some arbitrary and quite big maximum (3 times the minimum width). We could further take the available space into account, to reduce the need for scrolling in the header. But I don't think that is much of an issue and the name clipping it would re-introduce would probably be more annoying. |
Commit Details:
Full Hash: 2dd040a3495309566d6b2582e264b281752bcdd5
Parent Commit: 248d980
Lines Changed: +38, -13
1 Modified Path:
/source/blender/editors/interface/interface_templates.c (+38, -13) (Diff)