This has happened to me quite a number of times, immediately after saving an image, the RB browsers on screen changes position. Bug?
On Saturday 11 December 2004 6:27 am, Yar Hwee Boon wrote:
This has happened to me quite a number of times, immediately after saving an image, the RB browsers on screen changes position. Bug?
Position (x/y) or Z-order?
It is common that Z-ordering will sometimes change, especially if you had a Morph on top that wasn't a SystemWindow.
On Tue, 14 Dec 2004 11:10:01 -0800, Ned Konz ned@squeakland.org wrote:
On Saturday 11 December 2004 6:27 am, Yar Hwee Boon wrote:
This has happened to me quite a number of times, immediately after saving � an image, the RB browsers on screen changes position. Bug?
Position (x/y) or Z-order?
Position. It *seems* to occur most frequently with the top left-most window which I keep near the top left edge.
It is common that Z-ordering will sometimes change, especially if you had a Morph on top that wasn't a SystemWindow.
I only have RB browsers and workspace(s) open.
I've seen this happen myself. To me, it sounds like you have a window that is a little bit outside of the World's bounds- that is, oftentimes, if you have a window cornering one of the edges, in reality that window may have a position of -2@-1 or something like that. When you have a window that is 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.
But then you see it manifest in this way. It could be made more intelligent- perhaps don't move the window if any of the window's grabbable titlebar is inside the World at all, not just moving anything just barely out of it, etc. This doesn't seem to effect all Morphs, though I seem to recall that something like it happens when the *whole* morph is out of the World's bounds.
If you're like me, and like to have a set place for your windows- e.g. I always have stationary a whisker browser here, a script manager there, a regular browsers over there- and don't want it to get all weird on you, I'd suggest that you bring up an inspector on the window and position: it to 0@0 if it's the case of the upper left corner, or if it's in the bottom right-
self position: (World width - self width) @ (World height - self height)
and etc for various corners you'd substitute a zero in one or both of those.
Regards, Aaron Reichow
UMD Library :: (218) 726-6651 :: areichow@d.umn.edu
On Wed, 15 Dec 2004, Yar Hwee Boon wrote:
On Tue, 14 Dec 2004 11:10:01 -0800, Ned Konz ned@squeakland.org wrote:
On Saturday 11 December 2004 6:27 am, Yar Hwee Boon wrote:
This has happened to me quite a number of times, immediately after saving � an image, the RB browsers on screen changes position. Bug?
Position (x/y) or Z-order?
Position. It *seems* to occur most frequently with the top left-most window which I keep near the top left edge.
It is common that Z-ordering will sometimes change, especially if you had a Morph on top that wasn't a SystemWindow.
I only have RB browsers and workspace(s) open.
-- Regards HweeBoon MotionObj
On Wed, 15 Dec 2004 22:32:20 -0600 (CST), aaron reichow areichow@d.umn.edu wrote:
I've seen this happen myself. To me, it sounds like you have a window that is a little bit outside of the World's bounds- that is, oftentimes, if you have a window cornering one of the edges, in reality that window may have a position of -2@-1 or something like that. When you have a window that is 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.
squeak-dev@lists.squeakfoundation.org