From: Artur Signell Date: Mon, 16 Jan 2012 12:18:40 +0000 (+0000) Subject: #8085 Do not calculate a fixed width when enabled or readonly status changes if the... X-Git-Tag: 7.0.0.alpha2~485^2~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ef6c40e9fbc198157ddd4528801caaf752c9bbd;p=vaadin-framework.git #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 --- 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); }