summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Kovatch <skovatch>2011-01-04 17:12:31 +0000
committerScott Kovatch <skovatch>2011-01-04 17:12:31 +0000
commitaf7b4d1301b39b712c3335a058577a0465cad1f6 (patch)
tree4ad1e5ed0a2f790d20247c8f85208d096b039d65
parentbc954da7a2612121429c0cff2ba2d4a83d2019fb (diff)
downloadeclipse.platform.swt-af7b4d1301b39b712c3335a058577a0465cad1f6.tar.gz
eclipse.platform.swt-af7b4d1301b39b712c3335a058577a0465cad1f6.tar.xz
eclipse.platform.swt-af7b4d1301b39b712c3335a058577a0465cad1f6.zip
333375 - If a scrollView is used, client area always starts at 0, 0, not the bounds of the content view.
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scrollable.java4
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);