Changeset 5091
- Timestamp:
- 07/11/08 11:57:33 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java
r4943 r5091 9 9 import java.util.Iterator; 10 10 11 import com.google.gwt.user.client.Command; 11 12 import com.google.gwt.user.client.DOM; 13 import com.google.gwt.user.client.DeferredCommand; 12 14 import com.google.gwt.user.client.Element; 13 15 import com.google.gwt.user.client.ui.ComplexPanel; … … 16 18 import com.google.gwt.user.client.ui.Widget; 17 19 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection; 20 import com.itmill.toolkit.terminal.gwt.client.BrowserInfo; 18 21 import com.itmill.toolkit.terminal.gwt.client.Caption; 19 22 import com.itmill.toolkit.terminal.gwt.client.Container; … … 94 97 if (orientationMode == ORIENTATION_HORIZONTAL) { 95 98 marginElement = DOM.createDiv(); 96 if ( Util.isIE()) {99 if (BrowserInfo.get().isIE()) { 97 100 DOM.setStyleAttribute(marginElement, "zoom", "1"); 98 101 DOM.setStyleAttribute(marginElement, "overflow", "hidden"); 99 102 } 100 103 childContainer = DOM.createDiv(); 101 if ( Util.isIE()) {104 if (BrowserInfo.get().isIE()) { 102 105 DOM.setStyleAttribute(childContainer, "zoom", "1"); 103 106 DOM.setStyleAttribute(childContainer, "overflow", "hidden"); … … 213 216 setElement(DOM.createDiv()); 214 217 DOM.setStyleAttribute(getElement(), "cssFloat", "left"); 215 if ( Util.isIE()) {218 if (BrowserInfo.get().isIE()) { 216 219 DOM.setStyleAttribute(getElement(), "styleFloat", "left"); 217 220 } … … 473 476 int size; 474 477 if (orientationMode == ORIENTATION_VERTICAL) { 475 if ( Util.isIE6()) {478 if (BrowserInfo.get().isIE6()) { 476 479 DOM.setStyleAttribute(getElement(), "overflow", "hidden"); 477 480 } 478 481 size = getOffsetHeight(); 479 if ( Util.isIE6()) {482 if (BrowserInfo.get().isIE6()) { 480 483 DOM.setStyleAttribute(getElement(), "overflow", "visible"); 481 484 } … … 710 713 client); 711 714 } 715 716 // workaround for safari bug #1869 717 float wkv = BrowserInfo.get().getWebkitVersion(); 718 if (wkv > 0 && wkv < 526.9) { 719 DeferredCommand.addCommand(new Command() { 720 public void execute() { 721 iLayout(); 722 } 723 }); 724 } 712 725 } 713 726 }
