- Timestamp:
- 06/09/08 07:26:09 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2/src/com/itmill/toolkit/terminal/gwt/client/ui/IWindow.java
r4799 r4800 357 357 } 358 358 super.show(); 359 if (Util.isFF2()) { 360 // "missing cursor" browser bug workaround for FF2 in Windows and 361 // Linux 359 360 setFF2CaretFixEnabled(true); 361 362 } 363 364 private void setFF2CaretFixEnabled(boolean enable) { 365 // "missing cursor" browser bug workaround for FF2 in Windows andLinux 366 if (!Util.isFF2()) { 367 return; 368 } 369 if (enable) { 362 370 DeferredCommand.addCommand(new Command() { 363 371 public void execute() { … … 366 374 DOM.setStyleAttribute(getElement(), "overflow", "auto"); 367 375 } 376 368 377 }); 369 } 378 } else { 379 DOM.setStyleAttribute(getElement(), "overflow", ""); 380 } 381 370 382 } 371 383 … … 425 437 private void showDraggingCurtain(boolean show) { 426 438 if (show && draggingCurtain == null) { 427 ApplicationConnection.getConsole().log("SHOW"); 439 440 setFF2CaretFixEnabled(false); // makes FF2 slow 441 428 442 draggingCurtain = DOM.createDiv(); 429 443 DOM.setStyleAttribute(draggingCurtain, "position", "absolute"); … … 437 451 DOM.appendChild(RootPanel.getBodyElement(), draggingCurtain); 438 452 } else if (!show && draggingCurtain != null) { 439 ApplicationConnection.getConsole().log("HIDE"); 453 454 setFF2CaretFixEnabled(true); // makes FF2 slow 455 440 456 DOM.removeChild(RootPanel.getBodyElement(), draggingCurtain); 441 457 draggingCurtain = null;
