mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Update bounds origin upon setting frame
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8865 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9780540807
commit
1fa7d45744
1 changed files with 3 additions and 0 deletions
|
@ -417,18 +417,21 @@
|
|||
- (void) setFrameSize: (NSSize)aSize
|
||||
{
|
||||
[super setFrameSize: aSize];
|
||||
[self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];
|
||||
[_super_view reflectScrolledClipView: self];
|
||||
}
|
||||
|
||||
- (void) setFrameOrigin: (NSPoint)aPoint
|
||||
{
|
||||
[super setFrameOrigin: aPoint];
|
||||
[self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];
|
||||
[_super_view reflectScrolledClipView: self];
|
||||
}
|
||||
|
||||
- (void) setFrame: (NSRect)rect
|
||||
{
|
||||
[super setFrame: rect];
|
||||
[self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];
|
||||
[_super_view reflectScrolledClipView: self];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue