]> source.dussan.org Git - vaadin-framework.git/commitdiff
commenting IE hack
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 10 Mar 2008 14:45:21 +0000 (14:45 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 10 Mar 2008 14:45:21 +0000 (14:45 +0000)
svn changeset:4014/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java

index 53b0cf36ae0354453eebb730b8b7c5f40cca86ce..ae175e4e710d099a5fe6a26417441b3166ebc914 100644 (file)
@@ -38,10 +38,18 @@ public class IView extends SimplePanel implements Paintable,
 
     private ShortcutActionHandler actionHandler;
 
+    /** stored width for IE resize optiomization */
     private int width;
 
+    /** stored height for IE resize optiomization */
     private int height;
 
+    /**
+     * We are postponing resize process with IE. IE bugs with scrollbars in some
+     * situations, that causes false onWindowResized calls. With Timer we will
+     * give IE some time to decide if it really wants to keep current size
+     * (scrollbars).
+     */
     private Timer resizeTimer;
 
     public IView(String elementId) {
@@ -178,6 +186,11 @@ public class IView extends SimplePanel implements Paintable,
 
     public void onWindowResized(int width, int height) {
         if (Util.isIE()) {
+            /*
+             * IE will give us some false resized events due bugs with
+             * scrollbars. Postponing layout phase to see if size was really
+             * changed.
+             */
             if (resizeTimer == null) {
                 resizeTimer = new Timer() {
                     public void run() {