svn changeset:22610/svn branch:6.7
}\r
\r
if (lastReadOnlyState != readonly || lastEnabledState != isEnabled()) {\r
+ // Enabled or readonly state changed. Differences in theming might\r
+ // affect the width (for instance if the popup button is hidden) so\r
+ // we have to recalculate the width (IF the width of the field is\r
+ // fixed)\r
updateWidth();\r
}\r
\r
* automatically adjusted by the browser.
*/
public void updateWidth() {
- if (isUndefinedWidth()) {
+ if (!needLayout) {
return;
}
- needLayout = true;
+
fieldExtraWidth = -1;
iLayout(true);
}