On Apr 24, 2013, at 8:16 PM, Sean P. DeNigris <[email protected]> wrote:

> Benjamin Van Ryseghem-2 wrote
>> Here shrinkWrap will not work since the SpecLayout defines an absolute
>> layout for every widget.
> 
> Okay, so there's no way currently to do something like shrinkWrap? It seems
> that there has to be a mechanism in Spec that provides an easy way to get to
> lower level Morphic things like this, at least until we flesh out exactly
> what needs to be supported to cover the use cases.

Here it's not that trivial, because for #shrinkWrap to make sense, it means 
that the layout is not a PorportionalLayout, but something more elaborated.

> 
> Benjamin Van Ryseghem-2 wrote
>> Moreover it's a bit weird since you then specify the height of the column
>> :)
> 
> #height was going to the row; it was just formatted confusingly

ok, my bad :)

> 
> Benjamin Van Ryseghem-2 wrote
>> If you want to tackle (a bit) this problem ,you may use extent: to do
>> something
> 
> In other words, when something changes, manually change the extent to match
> the contents, simulating shrinkWrap?

Yes, it;s hawkish, but may work.
Otherwise you could even rebuild the layout. More hawkish :s

> 
> Benjamin Van Ryseghem-2 wrote
>> Adding different layout would also be a solution, but it will require some
>> work :)
> 
> I'm not exactly sure what you mean. Will you say more?

One could have something like

SpecTableLayout composed
        add: ...

or

SpecMyStrangeLayout composed
        add: …

But then you have to implement it :)

(Should be that complicated though, but still it takes time ^^)

Ben


> 
> -----
> Cheers,
> Sean
> --
> View this message in context: 
> http://forum.world.st/Spec-and-e-g-hResizing-tp4683208p4683425.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 


Reply via email to