mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 09:51:07 +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
7372657ad6
commit
33c6f48699
1 changed files with 3 additions and 0 deletions
|
@ -417,18 +417,21 @@
|
||||||
- (void) setFrameSize: (NSSize)aSize
|
- (void) setFrameSize: (NSSize)aSize
|
||||||
{
|
{
|
||||||
[super setFrameSize: aSize];
|
[super setFrameSize: aSize];
|
||||||
|
[self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];
|
||||||
[_super_view reflectScrolledClipView: self];
|
[_super_view reflectScrolledClipView: self];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setFrameOrigin: (NSPoint)aPoint
|
- (void) setFrameOrigin: (NSPoint)aPoint
|
||||||
{
|
{
|
||||||
[super setFrameOrigin: aPoint];
|
[super setFrameOrigin: aPoint];
|
||||||
|
[self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];
|
||||||
[_super_view reflectScrolledClipView: self];
|
[_super_view reflectScrolledClipView: self];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setFrame: (NSRect)rect
|
- (void) setFrame: (NSRect)rect
|
||||||
{
|
{
|
||||||
[super setFrame: rect];
|
[super setFrame: rect];
|
||||||
|
[self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];
|
||||||
[_super_view reflectScrolledClipView: self];
|
[_super_view reflectScrolledClipView: self];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue