Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Mueller2017-12-14 05:50:28 -0500
committerMarvin Mueller2017-12-14 05:52:10 -0500
commitfabc92bcf7828596a5055f7c692770f49150685d (patch)
tree91b040ca32e9f87b44f6f8461a89fbd8d0813efa
parent5d752cb6bb1d137e1910b882aaec3935c35ab839 (diff)
downloadorg.eclipse.jubula.core-fabc92bcf7828596a5055f7c692770f49150685d.tar.gz
org.eclipse.jubula.core-fabc92bcf7828596a5055f7c692770f49150685d.tar.xz
org.eclipse.jubula.core-fabc92bcf7828596a5055f7c692770f49150685d.zip
Workaround for problem selecting the correct combobox item
As a workaround we are scrolling first at the beginning of the list and from there on we scroll to the correct item. This seems to be more accurate. Change-Id: I560780111891d8ae96d96466d9fde1d6e42104ab
-rw-r--r--org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/ListViewAdapter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/ListViewAdapter.java b/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/ListViewAdapter.java
index e3669ae82..ceb0ff151 100644
--- a/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/ListViewAdapter.java
+++ b/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/ListViewAdapter.java
@@ -104,6 +104,8 @@ public class ListViewAdapter<T extends ListView<?>> extends
new Callable<Rectangle>() {
public Rectangle call() throws Exception {
final T listView = getRealComponent();
+ listView.scrollTo(0);
+ listView.layout();
listView.scrollTo(index.intValue());
listView.layout();

Back to the top