diff options
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java index c1357a72ae..bcde2791fc 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java @@ -184,9 +184,7 @@ public Rectangle getClientArea () { checkWidget(); if (scrollView != null) { NSSize size = scrollView.contentSize(); - NSClipView contentView = scrollView.contentView(); - NSRect bounds = contentView.bounds(); - return new Rectangle((int)bounds.x, (int)bounds.y, (int)size.width, (int)size.height); + return new Rectangle(0, 0, (int)size.width, (int)size.height); } else { NSRect rect = view.bounds(); return new Rectangle(0, 0, (int)rect.width, (int)rect.height); |