private ContextMenu contextMenu = null;
private Timer loadTimer;
+ private Timer loadTimer2;
+ private Timer loadTimer3;
private Element loadElement;
private final IView view;
+ "px");
// Initialize other timers
- final Timer delay = new Timer() {
+ loadTimer2 = new Timer() {
public void run() {
DOM.setElementProperty(loadElement, "className",
"i-loading-indicator-delay");
}
};
// Second one kicks in at 1500ms
- delay.schedule(1200);
+ loadTimer2.schedule(1200);
- final Timer wait = new Timer() {
+ loadTimer3 = new Timer() {
public void run() {
DOM.setElementProperty(loadElement, "className",
"i-loading-indicator-wait");
}
};
// Third one kicks in at 5000ms
- wait.schedule(4700);
+ loadTimer3.schedule(4700);
}
};
// First one kicks in at 300ms
private void hideLoadingIndicator() {
if (loadTimer != null) {
loadTimer.cancel();
+ if(loadTimer2 != null) {
+ loadTimer2.cancel();
+ loadTimer3.cancel();
+ }
}
if (loadElement != null) {
DOM.setStyleAttribute(loadElement, "display", "none");
private static final String CLASSNAME = "i-select-twincol";\r
\r
private static final int VISIBLE_COUNT = 10;\r
-\r
- private static final String DEFAULT_WIDTH = "10em";\r
+ \r
+ private static final int DEFAULT_COLUMN_COUNT = 10;\r
\r
private final ListBox options;\r
\r
if (getColumns() > 0) {\r
options.setWidth(getColumns() + "em");\r
selections.setWidth(getColumns() + "em");\r
+ optionsContainer.setWidth((getColumns()*2 + 3) + "em");\r
} else {\r
- options.setWidth(DEFAULT_WIDTH);\r
- selections.setWidth(DEFAULT_WIDTH);\r
+ options.setWidth(DEFAULT_COLUMN_COUNT + "em");\r
+ selections.setWidth(DEFAULT_COLUMN_COUNT + "em");\r
+ optionsContainer.setWidth((DEFAULT_COLUMN_COUNT*2 + 2) + "em");\r
}\r
if (getRows() > 0) {\r
options.setVisibleItemCount(getRows());\r