Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2018-12-24 13:59:32 +0000
committerLakshmi Shanmugam2018-12-24 13:59:32 +0000
commitd717ca78f2074cd1808f652cefa98a4e7e5070de (patch)
treeaca4e73949ce1d1ca8366ded5e466ed429e9a24e
parentc681cb81c9d891f6125d9db4ad48537c5b3fe390 (diff)
downloadeclipse.platform.swt-d717ca78f2074cd1808f652cefa98a4e7e5070de.tar.gz
eclipse.platform.swt-d717ca78f2074cd1808f652cefa98a4e7e5070de.tar.xz
eclipse.platform.swt-d717ca78f2074cd1808f652cefa98a4e7e5070de.zip
Bug 422446: [10.9] SWT vertical scroll is not visible
NSSlider vertical style stopped working since Mac 10.9. Rotate the widget (similar to vertical progress bar) so that it becomes vertical. Change-Id: Ic35aa0c59750a2c64101f65fe8ac7e04418dbc81
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scale.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scale.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scale.java
index 0ec4cbe1e6..d1d4e4aac0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scale.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Scale.java
@@ -14,11 +14,10 @@
package org.eclipse.swt.widgets;
-import org.eclipse.swt.internal.cocoa.*;
-
import org.eclipse.swt.*;
import org.eclipse.swt.events.*;
import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.internal.cocoa.*;
/**
* Instances of the receiver represent a selectable user
@@ -140,6 +139,7 @@ void createHandle () {
widget.setMaxValue(100);
widget.setTarget(widget);
widget.setAction(OS.sel_sendSelection);
+ if ((style & SWT.VERTICAL) != 0) widget.setBoundsRotation(-90);
view = widget;
}

Back to the top