diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-02 15:31:16 +1100 |
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-02 15:31:16 +1100 |
| commit | 6d7aca3c835014caca0d7c4d5b75b36397c4b8c8 (patch) | |
| tree | c561126dbd6863ff3f87cd45dc4b641b096d2ba7 /cocoa | |
| parent | 56eb7dd09cbf8574e08e67bb32ae5ce89e0e5f4f (diff) | |
| download | scintilla-mirror-6d7aca3c835014caca0d7c4d5b75b36397c4b8c8.tar.gz | |
Fix automatic scrolling on Cocoa.
Diffstat (limited to 'cocoa')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 2833e7846..e348488ff 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -724,8 +724,8 @@ Scintilla::Point ScintillaCocoa::GetVisibleOriginInMain() */ PRectangle ScintillaCocoa::GetClientRectangle() { - NSView* host = ContentView(); - NSSize size = [[host superview] frame].size; + NSScrollView *scrollView = ScrollContainer(); + NSSize size = [[scrollView contentView] bounds].size; Point origin = GetVisibleOriginInMain(); return PRectangle(origin.x, origin.y, origin.x+size.width, origin.y + size.height); } |
