Morphic windows move upon saving image
Yar Hwee Boon
hboon at motionobj.com
Thu Dec 16 05:18:54 UTC 2004
On Wed, 15 Dec 2004 22:32:20 -0600 (CST), aaron reichow
<areichow at d.umn.edu> wrote:
> I've seen this happen myself. To me, it sounds like you have a window
> is a little bit outside of the World's bounds- that is, oftentimes, if
> have a window cornering one of the edges, in reality that window may have
> a position of -2 at -1 or something like that. When you have a window that
> at all out of bounds like that, Squeak tries to be helpful and pops them
> within the viewable area. This is a feature, not a bug- it's especially
> helpful when you turn off full-screen mode, or de-maximize a window.
> Squeak will make sure you can get to all of the windows you had open
> before you shrunk the World. It runs this check when you save an image.
> Unfortunately, it doesn't just push them into the World- say, along the
> same border- but seems to put them somewhere completely random.
Aha! That's the reason, thanks. I guess that the random-ness of the
position takes into account any other windows so that the result is not
too awful, ie. all the windows having the same position, etc. I made a
small change to the check for whether the system window is in the world's
bounds by assuming 1% of the window's extent as leeway. Attached,
hopefully it helps anyone who is in the same situation as me.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 681 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20041216/5184ab9a/SystemWindow-makeMeVisible.obj
More information about the Squeak-dev