[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29632] trunk/blender/release/scripts/ui/ properties_data_curve.py: Small update to text boxes UI.

William Reynish william at reynish.com
Tue Jun 22 23:31:26 CEST 2010


Revision: 29632
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29632
Author:   billrey
Date:     2010-06-22 23:31:26 +0200 (Tue, 22 Jun 2010)

Log Message:
-----------
Small update to text boxes UI. It now works in single-column layout.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/properties_data_curve.py

Modified: trunk/blender/release/scripts/ui/properties_data_curve.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_curve.py	2010-06-22 21:11:13 UTC (rev 29631)
+++ trunk/blender/release/scripts/ui/properties_data_curve.py	2010-06-22 21:31:26 UTC (rev 29632)
@@ -378,25 +378,25 @@
             
             boxy = layout.box()
             
-            split = boxy.split()
+            row = boxy.row()
             
-            col = split.column()
-                
-            col2 = col.column(align=True)
-            col2.label(text="Dimensions:")
-            col2.prop(box, "width", text="Width")
-            col2.prop(box, "height", text="Height")
+            split = row.split()
+            
+            col = split.column(align=True)
 
+            col.label(text="Dimensions:")
+            col.prop(box, "width", text="Width")
+            col.prop(box, "height", text="Height")
+
             if wide_ui:
-                col = split.column()
+                col = split.column(align=True)
                 
-            row = col.row()
-            row.label(text="Offset:")
-            row.operator("font.textbox_remove", text='', icon='X').index = i
+            col.label(text="Offset:")
+            col.prop(box, "x", text="X")
+            col.prop(box, "y", text="Y")
             
-            col2 = col.column(align=True)
-            col2.prop(box, "x", text="X")
-            col2.prop(box, "y", text="Y")        
+            row.operator("font.textbox_remove", text='', icon='X').index = i     
+    
 
 classes = [
     DATA_PT_context_curve,





More information about the Bf-blender-cvs mailing list