Here shrinkWrap will not work since the SpecLayout defines an absolute layout for every widget. Moreover it's a bit weird since you then specify the height of the column :) If you want to tackle (a bit) this problem ,you may use extent: to do something Adding different layout would also be a solution, but it will require some work :) Ben On Apr 24, 2013, at 12:36 AM, Sean P. DeNigris <sean@clipperadams.com> wrote:
I see in the old-school layouts that it was possible to use #hResizing: {#ButtonSpec. ... #hResizing:. #spaceFill...
but I'm not sure how to do that now. I tried unsuccessfully: SpecLayout composed newRow: [ :spec | spec newColumn: [ :col | col add: #myLabel; send: #hResizing: withArguments: { #shrinkWrap } ] width: 50; add: #myModel ] height: 30; yourself.
I was thinking maybe #add:withSpec: had something to do with it?
----- Cheers, Sean -- View this message in context: http://forum.world.st/Spec-and-e-g-hResizing-tp4683208.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.