[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Jumpy "Windows" menu
From: |
Michael Hanni |
Subject: |
Jumpy "Windows" menu |
Date: |
Thu, 13 Mar 2003 14:45:22 -0800 (PST) |
Hi,
Steps to reproduce the Jumpy Windows Menu (as seen on Law and Order):
#1 Fire up GSTest.app
#2 Tear off the windows menu, stick it somewhere you can see it.
#3 start opening up windows from the Tests window.
The "Windows" menu is resized in a funny way: first, the contentsize changes so
the window expands upwards with the origin holding steady; and second, the
frame origin is modified and shifts the larger window down.
Possible solution:
In NSMenu.m, sizeToFit: make this modification (I'd send a patch, but the
blasted CVS server is not responding.)
windowFrame = [_aWindow frame];
[_aWindow setFrame: NSMakeRect(NSMinX(windowFrame),
(NSMaxY(windowFrame) - size.height),
size.width,
size.height)
display: NO];
windowFrame = [_bWindow frame];
[_bWindow setFrame: NSMakeRect(NSMinX(windowFrame),
(NSMaxY(windowFrame) - size.height),
size.width,
size.height)
display: NO];
Oh, heads up, this is against Willem's changes.
Cheers,
Michael
- Jumpy "Windows" menu,
Michael Hanni <=