summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2012-01-16 12:18:40 +0000
committerArtur Signell <artur.signell@itmill.com>2012-01-16 12:18:40 +0000
commit8ef6c40e9fbc198157ddd4528801caaf752c9bbd (patch)
tree02a0008679c5264f5932612fc8fd39375b75e6b9
parent369635cb8912f9b0ee52471f0a6f95cc0705ea8d (diff)
downloadvaadin-framework-8ef6c40e9fbc198157ddd4528801caaf752c9bbd.tar.gz
vaadin-framework-8ef6c40e9fbc198157ddd4528801caaf752c9bbd.zip
#8085 Do not calculate a fixed width when enabled or readonly status changes if the width for the component is undefined
svn changeset:22642/svn branch:6.7
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java b/src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java
index ee5503376e..56cdf05ddb 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java
@@ -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);
}