Fix flow layout for camera data Viewport Display panel.
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 21 Mar 2019 15:24:02 +0000 (16:24 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 21 Mar 2019 15:24:02 +0000 (16:24 +0100)
Flow layout needs sub-layouts to properly identify 'cells' of its grid.

release/scripts/startup/bl_ui/properties_data_camera.py

index 1183e45..820630a 100644 (file)
@@ -377,10 +377,14 @@ class DATA_PT_camera_display(CameraButtonsPanel, Panel):
 
         flow = layout.grid_flow(row_major=False, columns=0, even_columns=False, even_rows=False, align=False)
 
-        flow.prop(cam, "show_limits", text="Limits")
-        flow.prop(cam, "show_mist", text="Mist")
-        flow.prop(cam, "show_sensor", text="Sensor")
-        flow.prop(cam, "show_name", text="Name")
+        col = flow.column()
+        col.prop(cam, "show_limits", text="Limits")
+        col = flow.column()
+        col.prop(cam, "show_mist", text="Mist")
+        col = flow.column()
+        col.prop(cam, "show_sensor", text="Sensor")
+        col = flow.column()
+        col.prop(cam, "show_name", text="Name")
 
 class DATA_PT_camera_display_composition_guides(CameraButtonsPanel, Panel):
     bl_label = "Composition Guides"