]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8085 Do not calculate a fixed width when enabled or readonly status changes if the...
authorArtur Signell <artur.signell@itmill.com>
Mon, 16 Jan 2012 12:18:40 +0000 (12:18 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 16 Jan 2012 12:18:40 +0000 (12:18 +0000)
svn changeset:22642/svn branch:6.7

src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java

index ee5503376e49f5ff445878d40c8ea7bb6301ec90..56cdf05ddb0b0c6dd1e676602ab9d1c007d134b5 100644 (file)
@@ -392,10 +392,10 @@ public class VTextualDate extends VDateField implements Paintable, Field,
      * automatically adjusted by the browser.
      */
     public void updateWidth() {
-        if (!needLayout) {
+        if (isUndefinedWidth()) {
             return;
         }
-
+        needLayout = true;
         fieldExtraWidth = -1;
         iLayout(true);
     }