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:
Nicola Pero 2001-01-28 22:57:55 +00:00
parent 9780540807
commit 1fa7d45744

View file

@ -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];
}