[Cuis] 2243: #keepMorphExtent

Juan Vuletich juan at jvuletich.org
Wed Apr 29 08:22:55 CDT 2015


On 4/24/2015 4:28 PM, Ken.Dickey wrote:
> lm := LayoutMorph initializedInstance .
> lm addMorph: ((PluggableButtonMorph model: self action: #click)
> 			icon: (Theme current perform: #closeIcon);
> 			setBalloonText:'close me';
> 			iconName: #close;
> 			yourself)
>     layoutSpec: LayoutSpec keepMorphExtent.
> lm openInWorld.
>
> ===============
>
> Drag size-adjust-handle to make icon smaller.  Not only does it shrink. !t never regrows!
>
> ---
> -KenD

Yep. That's the effect of #keepMorphExtent. You might try #useAll to 
allow regrowth.

Cheers,
Juan Vuletich




More information about the Cuis mailing list