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>2010-06-28 01:35:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-06-28 01:35:31 +0400
commit5cc2e136ec48d901c097bf1a5724a8ac1df32376 (patch)
treef7a588471219ef4a974a4e29b22054f45852ec1e /release
parentd9bcd249cf40dfd8bf168d816dcb6627e6a1c517 (diff)
nicer alignment for preset UI
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/properties_object.py6
-rw-r--r--release/scripts/ui/properties_physics_cloth.py2
-rw-r--r--release/scripts/ui/properties_render.py7
3 files changed, 7 insertions, 8 deletions
diff --git a/release/scripts/ui/properties_object.py b/release/scripts/ui/properties_object.py
index 03d5a21f479..98b768b2585 100644
--- a/release/scripts/ui/properties_object.py
+++ b/release/scripts/ui/properties_object.py
@@ -155,9 +155,9 @@ class OBJECT_PT_groups(ObjectButtonsPanel):
ob = context.object
wide_ui = context.region.width > narrowui
- split = layout.split(percentage=0.8, align=True)
- split.operator("object.group_link", text="Add to Group")
- split.operator("object.group_add", text="", icon='ZOOMIN')
+ row = layout.row(align=True)
+ row.operator("object.group_link", text="Add to Group")
+ row.operator("object.group_add", text="", icon='ZOOMIN')
# XXX, this is bad practice, yes, I wrote it :( - campbell
index = 0
diff --git a/release/scripts/ui/properties_physics_cloth.py b/release/scripts/ui/properties_physics_cloth.py
index 834e3cf2450..61e1fe81812 100644
--- a/release/scripts/ui/properties_physics_cloth.py
+++ b/release/scripts/ui/properties_physics_cloth.py
@@ -87,7 +87,7 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel):
col = split.column()
col.label(text="Presets:")
- sub = col.row(align=True).split(percentage=0.75)
+ sub = col.row(align=True)
sub.menu("CLOTH_MT_presets", text=bpy.types.CLOTH_MT_presets.bl_label)
sub.operator("cloth.preset_add", text="", icon="ZOOMIN")
diff --git a/release/scripts/ui/properties_render.py b/release/scripts/ui/properties_render.py
index b040580c94f..829416b86d3 100644
--- a/release/scripts/ui/properties_render.py
+++ b/release/scripts/ui/properties_render.py
@@ -536,10 +536,9 @@ class RENDER_PT_dimensions(RenderButtonsPanel):
rd = scene.render
wide_ui = context.region.width > narrowui
- row = layout.row().split()
- sub = row.row(align=True).split(percentage=0.75)
- sub.menu("RENDER_MT_presets", text=bpy.types.RENDER_MT_presets.bl_label)
- sub.operator("render.preset_add", text="", icon="ZOOMIN")
+ row = layout.row(align=True)
+ row.menu("RENDER_MT_presets", text=bpy.types.RENDER_MT_presets.bl_label)
+ row.operator("render.preset_add", text="", icon="ZOOMIN")
split = layout.split()