mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
Fixes to autosizing behavior for CPMenu - closes issue #270
This commit is contained in:
+5
-4
@@ -1970,11 +1970,12 @@ var _CPMenuBarWindowBackgroundColor = nil,
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setFrameSize:(CGSize)aSize
|
||||
- (void)setFrame:(CGRect)aRect
|
||||
{
|
||||
[super setFrameSize:aSize];
|
||||
|
||||
[self tile];
|
||||
var oldSize = CGSizeMakeCopy([self frame].size);
|
||||
[super setFrame:aRect];
|
||||
if (!CGSizeEqualToSize(oldSize, [self frame].size))
|
||||
[self tile];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user