TextMorph "Actual" bounds
Jim Rosenberg
jr at amanue.com
Mon Feb 25 11:31:59 UTC 2002
If I apply the bounds method to a TextMorph, the rectangle I get may or may
not reflect the "actual" size of the text "as drawn". E.g. if every line
of the text has "hard" line-breaks, the morph may have been resized via the
halo to a size much bigger than the minimum necessary to actually draw the
text.
I need to find the bounds of the actual text as drawn, regardless of the
current size of the morph. What's the easiest way to do this?
---
Jim Rosenberg http://www.well.com/user/jer/
WELL: jer
Internet: jr at amanue.com
More information about the Squeak-dev
mailing list
|