Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-08-24 05:13:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-24 05:16:38 +0300
commitb2d32d7fa4b371561b18c68eeeed0d7012850f8c (patch)
treea74a4a78a02262d327d0c163e5315fbbfffb7ed6 /source/blender
parent7ec1a56a41953eac23e252fad9a3bf1605471abc (diff)
UI: always align item w/ label
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface_layout.c3
1 files changed, 2 insertions, 1 deletions
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]) {