private boolean filtering = false;
private boolean selecting = false;
private boolean tabPressed = false;
+ private boolean initDone = false;
private String lastFilter = "";
private int lastIndex = -1; // last selected index when using arrows
popupOpenerClicked = false;
updateRootWidth();
+
+ initDone = true;
}
private void setPromptingOn() {
}
horizPaddingAndBorder = Util.setWidthExcludingPaddingAndBorder(this,
width, horizPaddingAndBorder);
- updateRootWidth();
+
+ if (initDone) {
+ updateRootWidth();
+ }
}
@Override
- Util.measureMarginLeft(selectedItemIcon.getElement()) : 0;
int w = tbWidth + openerWidth + iconWidth;
- if (currentPage + 1 <= 0 && suggestionPopupMinWidth > w) {
+ if ((!initDone || currentPage + 1 <= 0)
+ && suggestionPopupMinWidth > w) {
setTextboxWidth(suggestionPopupMinWidth);
w = suggestionPopupMinWidth;
} else {