diff options
author | Leif Åstrand <leif@vaadin.com> | 2015-05-18 15:10:30 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-06-22 07:18:46 +0000 |
commit | 122fccfe01f8f1aca922d861b44853b09fe8f603 (patch) | |
tree | cff516303035c46799e2459cf7d1f4eeaa36862c /server/src/com/vaadin/ui/AbstractComponent.java | |
parent | 050dd3659768da39260e7838bc57070c1361c1ac (diff) | |
download | vaadin-framework-122fccfe01f8f1aca922d861b44853b09fe8f603.tar.gz vaadin-framework-122fccfe01f8f1aca922d861b44853b09fe8f603.zip |
Write true as attribute="" (#17519)
Change-Id: I49287cc38605abb75059cb553e3baed2a8359067
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractComponent.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java index 18c3509af7..f499cb1fec 100644 --- a/server/src/com/vaadin/ui/AbstractComponent.java +++ b/server/src/com/vaadin/ui/AbstractComponent.java @@ -1170,16 +1170,16 @@ public abstract class AbstractComponent extends AbstractClientConnector // first try the full shorthands if (widthFull && heightFull) { - attributes.put("size-full", "true"); + attributes.put("size-full", ""); } else if (widthAuto && heightAuto) { - attributes.put("size-auto", "true"); + attributes.put("size-auto", ""); } else { // handle width if (!hasEqualWidth(defaultInstance)) { if (widthFull) { - attributes.put("width-full", "true"); + attributes.put("width-full", ""); } else if (widthAuto) { - attributes.put("width-auto", "true"); + attributes.put("width-auto", ""); } else { String widthString = DesignAttributeHandler.getFormatter() .format(getWidth()) + getWidthUnits().getSymbol(); @@ -1190,9 +1190,9 @@ public abstract class AbstractComponent extends AbstractClientConnector if (!hasEqualHeight(defaultInstance)) { // handle height if (heightFull) { - attributes.put("height-full", "true"); + attributes.put("height-full", ""); } else if (heightAuto) { - attributes.put("height-auto", "true"); + attributes.put("height-auto", ""); } else { String heightString = DesignAttributeHandler.getFormatter() .format(getHeight()) + getHeightUnits().getSymbol(); |