Skip to content

Commit

Permalink
For #85 - scroll to the selected marker icon
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed May 25, 2015
1 parent b1230f0 commit 505c3c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ public void onSubmitComplete(SubmitCompleteEvent event) {
public void onAnything() {
for (int i = 0; i < store.size(); i++) {
if (store.get(i).getKey().equals(selected.getKey())) {
view.getElement(i).ensureVisible();
view.getElement(i).scrollIntoView();
view.getSelectionModel().select(i, false);
break;
}
Expand Down

0 comments on commit 505c3c2

Please sign in to comment.