Implemented single column UI for textures, curve, mesh and empty.
[blender.git] / release / scripts / ui / properties_data_empty.py
index 3f6c7523b3e4f80054c4b6e557cb90e1ff40e360..225247dbc0758ba83b3885bb889985240ffe9f60 100644 (file)
@@ -19,6 +19,7 @@
 # <pep8 compliant>
 import bpy
 
+narrowui = 180
 
 class DataButtonsPanel(bpy.types.Panel):
     bl_space_type = 'PROPERTIES'
@@ -36,8 +37,12 @@ class DATA_PT_empty(DataButtonsPanel):
         layout = self.layout
 
         ob = context.object
+        col2 = context.region.width > narrowui
 
-        layout.itemR(ob, "empty_draw_type", text="Display")
+        if col2:
+            layout.itemR(ob, "empty_draw_type", text="Display")
+        else:
+            layout.itemR(ob, "empty_draw_type", text="")
         layout.itemR(ob, "empty_draw_size", text="Size")
 
 bpy.types.register(DATA_PT_empty)