mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 05:51:49 +00:00
Fix translation of scrolling document bounds
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8042 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
84b1d15848
commit
144ab50f30
3 changed files with 17 additions and 2 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <AppKit/NSColor.h>
|
||||
#include <AppKit/NSWindow.h>
|
||||
#include <AppKit/NSGraphics.h>
|
||||
#include <AppKit/PSOperators.h>
|
||||
|
||||
@implementation NSClipView
|
||||
|
||||
|
@ -213,6 +214,9 @@
|
|||
[self convertRect: newBounds toView: _documentView]];
|
||||
}
|
||||
|
||||
if ([NSView focusView] == _documentView)
|
||||
PStranslate(NSMinX(originalBounds)-point.x, NSMinY(originalBounds)-point.y);
|
||||
|
||||
[_super_view reflectScrolledClipView: self];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue