Morph layoutChanged, irregularities
Jon Kleiser
squeak-dev at lists.squeakfoundation.org
Tue Sep 3 10:48:48 UTC 2002
To learn a bit about Balloon3D, I've been studying the
B3DSceneExplorerMorph class. When I took a closer look at the
"initialize" and "layoutChanged" methods, I discovered that the
"layoutChanged" was called (implisitly) several times during the
execution of "initialize", roughly two times for each submorph that
was added. Adding the last submorph (the acceleratorButton), however,
does not trigger a call to "layoutChanged", which may be seen when
the B3DSceneExplorerMorph shows up on the screen; the
acceleratorButton is still located at 0 at 0. You may then interact with
(e.g. resize) the morph, and notice that the acceleratorButton gets
moved a bit to the right, to its intended position.
I believe something in the method(s) that controll the calling to
"layoutChanged" need to be cleaned up, but I'm too much a Squeak
newbie to do that yet.
Sincerely,
Jon Kleiser
---------------------------------------------------------------------------
Jon Kleiser / ADB ekstern / USIT / University of Oslo / Norway
Mail: Jon.Kleiser at usit.uio.no / Tel: +47-22 85 28 04 / Fax: +47-22 85 29 70
---------------------------------------------------------------------------
More information about the Squeak-dev
mailing list
|