[Bf-blender-cvs] [b2d32d7fa4b] master: UI: always align item w/ label
Campbell Barton
noreply at git.blender.org
Fri Aug 24 04:10:40 CEST 2018
Commit: b2d32d7fa4b371561b18c68eeeed0d7012850f8c
Author: Campbell Barton
Date: Fri Aug 24 12:13:28 2018 +1000
Branches: master
https://developer.blender.org/rBb2d32d7fa4b371561b18c68eeeed0d7012850f8c
UI: always align item w/ label
===================================================================
M source/blender/editors/interface/interface_layout.c
===================================================================
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 140fdbe355b..edd568e4fea 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -678,7 +678,8 @@ static uiBut *ui_item_with_label(uiLayout *layout, uiBlock *block, const char *n
PropertySubType subtype;
int labelw;
- sub = uiLayoutRow(layout, layout->align);
+ /* Always align item with label since text is already given enough space not to overlap. */
+ sub = uiLayoutRow(layout, true);
UI_block_layout_set_current(block, sub);
if (name[0]) {
More information about the Bf-blender-cvs
mailing list