Minor little fix in DefaultSuggestionDisplay
Review at http://gwt-code-reviews.appspot.com/1122801
Review by: jlabanca@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9250 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/SuggestBox.java b/user/src/com/google/gwt/user/client/ui/SuggestBox.java
index bbb054b..26c63d7 100644
--- a/user/src/com/google/gwt/user/client/ui/SuggestBox.java
+++ b/user/src/com/google/gwt/user/client/ui/SuggestBox.java
@@ -678,11 +678,11 @@
private final TextBoxBase box;
private final Callback callback = new Callback() {
public void onSuggestionsReady(Request request, Response response) {
+ display.setMoreSuggestions(response.hasMoreSuggestions(),
+ response.getMoreSuggestionsCount());
display.showSuggestions(SuggestBox.this, response.getSuggestions(),
oracle.isDisplayStringHTML(), isAutoSelectEnabled(),
suggestionCallback);
- display.setMoreSuggestions(response.hasMoreSuggestions(),
- response.getMoreSuggestionsCount());
}
};
private final SuggestionCallback suggestionCallback = new SuggestionCallback() {