diff options
author | Thomas Dinges <blender@dingto.org> | 2011-07-27 00:05:17 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-07-27 00:05:17 +0400 |
commit | 9a250bea61340cb8b3625345df6560ba3e7b878f (patch) | |
tree | f083047b5df9a6b64a31dad8d442d5f2d0df128a /release/scripts/startup/bl_ui/space_text.py | |
parent | a460299b08303d3cfbd9b83d036d87351cb52693 (diff) |
Fix part of [#28088] bad button spacing with layout engine for menu items.
* Fixed a cut off text.
* small cleanup
Diffstat (limited to 'release/scripts/startup/bl_ui/space_text.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_text.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 582c9442a4a..b787fc5cf75 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -33,22 +33,21 @@ class TEXT_HT_header(bpy.types.Header): row.template_header() if context.area.show_menus: - sub = row.row(align=True) - sub.menu("TEXT_MT_view") - sub.menu("TEXT_MT_text") + row.menu("TEXT_MT_view") + row.menu("TEXT_MT_text") if text: - sub.menu("TEXT_MT_edit") - sub.menu("TEXT_MT_format") + row.menu("TEXT_MT_edit") + row.menu("TEXT_MT_format") - sub.menu("TEXT_MT_templates") + row.menu("TEXT_MT_templates") if text and text.is_modified: - row = layout.row() - row.alert = True - row.operator("text.resolve_conflict", text="", icon='HELP') + sub = row.row() + sub.alert = True + sub.operator("text.resolve_conflict", text="", icon='HELP') - layout.template_ID(st, "text", new="text.new", unlink="text.unlink") + row.template_ID(st, "text", new="text.new", unlink="text.unlink") row = layout.row(align=True) row.prop(st, "show_line_numbers", text="") |