diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-11 03:36:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-11 03:36:09 +0400 |
commit | 67fb71ade54955c96b42493232a148ba5866af8d (patch) | |
tree | 34aa5865fb5f6db40639b6bb1a4efb146e171e0a /release/scripts/modules/rna_keymap_ui.py | |
parent | 187f664c7587d0d8f13b0e71bcc38dc2d7f97693 (diff) |
fix [#37038] User prefs > Input - Category names cut off
Diffstat (limited to 'release/scripts/modules/rna_keymap_ui.py')
-rw-r--r-- | release/scripts/modules/rna_keymap_ui.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/release/scripts/modules/rna_keymap_ui.py b/release/scripts/modules/rna_keymap_ui.py index 727e9935bcc..60590158fbd 100644 --- a/release/scripts/modules/rna_keymap_ui.py +++ b/release/scripts/modules/rna_keymap_ui.py @@ -74,15 +74,14 @@ def draw_km(display_keymaps, kc, km, children, layout, level): row.prop(km, "show_expanded_children", text="", emboss=False) row.label(text=km.name, text_ctxt=i18n_contexts.id_windowmanager) - row.label() - row.label() + subrow = row.row() + subrow.alignment = 'RIGHT' - if km.is_modal: - row.label(text="", icon='LINKED') if km.is_user_modified: - row.operator("wm.keymap_restore", text="Restore") - else: - row.label() + subrow.operator("wm.keymap_restore", text="Restore") + if km.is_modal: + subrow.label(text="", icon='LINKED') + del subrow if km.show_expanded_children: if children: |