[Cuis] How to center a submorph in its owner morph?
Ken Dickey
Ken.Dickey at whidbey.com
Wed Jan 1 11:53:29 CST 2014
Hannes,
Sorry, I don't have time to read the code right now. 8^(
But the following code might be of help..
Morph>>referencePosition
"Return the current reference position of the receiver"
"a rather ugly way to say #center . At least, we avoid false polymorphism"
"remove some day"
self flag: #jmvVer2.
^self morphExtentInWorld // 2 + self morphPositionInWorld
-KenD
More information about the Cuis
mailing list