[Pharo-dev] Bug in Spec layout?

Benjamin benjamin.vanryseghem.pharo at gmail.com
Wed Apr 9 05:33:16 EDT 2014


This is a nightmare to solve :)

a way to fix it is ti introduce another column for the two first widgets

Ben

On 09 Apr 2014, at 11:23, Martin Dias <tinchodias at gmail.com> wrote:

> Hello folks,
> 
> When I evaluate in latest Pharo 3:
> 
> DynamicComposableModel new
> 	instantiateModels: #(
> 		a TreeModel
> 		b TreeModel
> 		c TreeModel);
> 	openWithSpecLayout: 
> 		(SpecLayout composed
> 			newColumn: [ :column |
> 				column 
> 					newRow: [ :row |
> 						row newColumn: #a.
> 						row newColumn: #b.
> 						row newColumn: #c width: 80 ] ];
> 			yourself)
> 
> ===> 
> 
> <Screen Shot 2014-04-09 at 11.09.38 AM.png>
> 
> Maybe I'm wrong: I expected that #a and #b have the same width. But it looks like the layout algorithm first splits the space half/half between #a and #b, and later it only shrinks #b to give the fixed space to #c.
> 
> Should I report an issue? or specify layout in other way?
> 
> Thanks,
> Martín

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20140409/e1716516/attachment-0002.html>


More information about the Pharo-dev mailing list