mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:07:38 +00:00
Source/NSSplitView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14235 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
898524e393
commit
f4cc3d1d83
2 changed files with 26 additions and 4 deletions
|
@ -802,10 +802,19 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (void) setFrame: (NSRect) newFrame
|
||||
{
|
||||
NSRect oldFrame = [self frame];
|
||||
[super setFrame: newFrame];
|
||||
[self _adjustSubviews: oldFrame.size];
|
||||
[_window invalidateCursorRectsForView: self];
|
||||
}
|
||||
|
||||
- (void) resizeWithOldSuperviewSize: (NSSize)oldSize
|
||||
{
|
||||
NSRect oldFrame = [self frame];
|
||||
[super resizeWithOldSuperviewSize: oldSize];
|
||||
[self _adjustSubviews: oldSize];
|
||||
[self _adjustSubviews: oldFrame.size];
|
||||
[_window invalidateCursorRectsForView: self];
|
||||
}
|
||||
|
||||
|
@ -818,8 +827,8 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
|||
|
||||
if (_never_displayed_before == YES)
|
||||
{
|
||||
[self _adjustSubviews: _frame.size];
|
||||
_never_displayed_before = NO;
|
||||
[self _adjustSubviews: _frame.size];
|
||||
}
|
||||
|
||||
[super displayIfNeededInRectIgnoringOpacity: aRect];
|
||||
|
@ -834,8 +843,8 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
|||
|
||||
if (_never_displayed_before == YES)
|
||||
{
|
||||
[self _adjustSubviews: _frame.size];
|
||||
_never_displayed_before = NO;
|
||||
[self _adjustSubviews: _frame.size];
|
||||
}
|
||||
|
||||
[super displayRectIgnoringOpacity: aRect];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue