3013_4.txt
1 |
=== modified file 'src/com/goldencode/p2j/ui/client/gui/driver/swing/SwingMouseHandler.java' |
---|---|
2 |
--- src/com/goldencode/p2j/ui/client/gui/driver/swing/SwingMouseHandler.java 2016-03-06 15:30:32 +0000 |
3 |
+++ src/com/goldencode/p2j/ui/client/gui/driver/swing/SwingMouseHandler.java 2016-03-06 17:38:24 +0000 |
4 |
@@ -36,6 +36,8 @@ |
5 |
import com.goldencode.p2j.ui.client.*; |
6 |
import com.goldencode.p2j.ui.client.event.*; |
7 |
import com.goldencode.p2j.ui.client.gui.FrameGuiImpl; |
8 |
+import com.goldencode.p2j.ui.client.gui.ScrollBarGuiImpl; |
9 |
+import com.goldencode.p2j.ui.client.gui.ScrollPaneGuiImpl; |
10 |
import com.goldencode.p2j.ui.client.gui.driver.*; |
11 |
import com.goldencode.p2j.ui.client.widget.*; |
12 |
|
13 |
@@ -428,6 +430,19 @@ |
14 |
} |
15 |
}); |
16 |
|
17 |
+ // if it is scroll bar then find its scroll pane parent |
18 |
+ if (parent instanceof ScrollBarGuiImpl) |
19 |
+ { |
20 |
+ parent = WidgetRegistry.findAncestor(parent, new Predicate<Widget>() |
21 |
+ { |
22 |
+ @Override |
23 |
+ public boolean test(Widget t) |
24 |
+ { |
25 |
+ return ScrollPaneGuiImpl.class.equals(t.getClass()); |
26 |
+ } |
27 |
+ }); |
28 |
+ } |
29 |
+ |
30 |
WidgetId wid = UiUtils.getWidgetId(parent); |
31 |
|
32 |
if (wid == null) |
33 |
|