* Source/NSClipView.m (-setBounds:, -setBoundsSize:): Use

-setNeedsDisplay: to redraw areas no longer covered by the
        document view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37441 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2013-12-08 14:16:17 +00:00
parent 73b1e01475
commit 1b478fabbf
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2013-12-08 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSClipView.m (-setBounds:, -setBoundsSize:): Use
-setNeedsDisplay: to redraw areas no longer covered by the
document view.
2013-12-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSClipView.m (-setDocumentView:): Don't take the

View file

@ -230,14 +230,14 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
- (void) setBounds: (NSRect)b
{
[super setBounds: b];
[_documentView setNeedsDisplayInRect: [self documentVisibleRect]];
[self setNeedsDisplay: YES];
[_super_view reflectScrolledClipView: self];
}
- (void) setBoundsSize: (NSSize)aSize
{
[super setBoundsSize: aSize];
[_documentView setNeedsDisplayInRect: [self documentVisibleRect]];
[self setNeedsDisplay: YES];
[_super_view reflectScrolledClipView: self];
}