[General] Morph Padding & Margin
philmaker at gmail.com
Thu Apr 23 02:27:08 CEST 2009
What's the proper way to affect/construct padding or margins for Morphs?
I've never really wrangled it and have just been using a separate margin
insets property in the morphs I use for layout.
I'm accustomed to using Insets from Swing. In Lively, it looks like I need
to be using Rectangle.insetBy or Rectangle.expandBy.
If I simply assign a Rectangle as padding - e.g. new Rectangle(0, 50, 0, 0)
- that adds 50 pixels of padding to the top *and* to the bottom (TextMorph).
Is this the proper behavior?
I am currently investigating this - but still want to ask.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lively-kernel