[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30807] trunk/blender/source/blender/ editors/interface/interface_layout.c: Fix #22950: width of a layout object does not propagate to its sub-layout

Brecht Van Lommel brecht at blender.org
Tue Jul 27 14:11:26 CEST 2010


Revision: 30807
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30807
Author:   blendix
Date:     2010-07-27 14:11:25 +0200 (Tue, 27 Jul 2010)

Log Message:
-----------
Fix #22950: width of a layout object does not propagate to its sub-layout
objects (row, column, box, etc.). Patch by Tamito Kajiyama, thanks!

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/interface_layout.c

Modified: trunk/blender/source/blender/editors/interface/interface_layout.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_layout.c	2010-07-27 12:01:40 UTC (rev 30806)
+++ trunk/blender/source/blender/editors/interface/interface_layout.c	2010-07-27 12:11:25 UTC (rev 30807)
@@ -2002,6 +2002,7 @@
 	litem->enabled= 1;
 	litem->context= layout->context;
 	litem->space= (align)? 0: layout->root->style->buttonspacex;
+	litem->w = layout->w;
 	BLI_addtail(&layout->items, litem);
 
 	uiBlockSetCurLayout(layout->root->block, litem);
@@ -2021,6 +2022,7 @@
 	litem->enabled= 1;
 	litem->context= layout->context;
 	litem->space= (litem->align)? 0: layout->root->style->buttonspacey;
+	litem->w = layout->w;
 	BLI_addtail(&layout->items, litem);
 
 	uiBlockSetCurLayout(layout->root->block, litem);
@@ -2040,6 +2042,7 @@
 	flow->litem.enabled= 1;
 	flow->litem.context= layout->context;
 	flow->litem.space= (flow->litem.align)? 0: layout->root->style->columnspace;
+	flow->litem.w = layout->w;
 	flow->number= number;
 	BLI_addtail(&layout->items, flow);
 
@@ -2059,6 +2062,7 @@
 	box->litem.enabled= 1;
 	box->litem.context= layout->context;
 	box->litem.space= layout->root->style->columnspace;
+	box->litem.w = layout->w;
 	BLI_addtail(&layout->items, box);
 
 	uiBlockSetCurLayout(layout->root->block, &box->litem);





More information about the Bf-blender-cvs mailing list