[BUG][FIX] Global Flaps running to the corners (hack)

Jesse Welton jwelton at pacific.mps.ohio-state.edu
Wed Feb 7 21:22:37 UTC 2001


On Tue, 6 Feb 2001, Steve Gilbert wrote:
> 
> Just downloaded 3.x including a new 3.x VM for Windows.
> 
> Start the 3_0.image fresh from a download.  Global flaps are all nicely
> positioned in the center of all 4 sides of the window.  Then I minimize
> the Windows window and then restore it and all of the flaps go and hide
> in the corners.

It's done this for ages.  What's happening is that when you minimize
the window, the window is resized to a tiny rectangle (basically a
stupid Windows thing), which clamps the flaps' position to the
corners.  When the window expands again, the flaps don't see the need
to go anywhere, since they're fully on-screen.

Here's a little hack which should fix this behavior.  When you drag a
flap, it caches the fractional position in a property; when the flap
is clamped to the screen, it uses this value if present.  I'm sure
there's a much nicer fix involving the new layout facilities, but that
would require a comprehensive rewrite of the flap positioning.

-Jesse

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ProportionalFlapPositions.1.cs
Type: application/octet-stream
Size: 1691 bytes
Desc: 
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010207/e0329e85/ProportionalFlapPositions.1.obj


More information about the Squeak-dev mailing list