From 33c6f48699cfc428a10382ea9b9292c3c087788c Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 28 Jan 2001 22:57:55 +0000 Subject: [PATCH] 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 --- Source/NSClipView.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/NSClipView.m b/Source/NSClipView.m index 47909d157..c4af3b46a 100644 --- a/Source/NSClipView.m +++ b/Source/NSClipView.m @@ -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]; }