diff options
author | Leif Åstrand <leif@vaadin.com> | 2015-05-18 15:10:30 +0300 |
---|---|---|
committer | Mika Murtojarvi <mika@vaadin.com> | 2015-08-18 16:34:35 +0300 |
commit | cdc07e55c12dc4ffbe509e15c4f4f165fb4a1670 (patch) | |
tree | 43e29dd55b40c6e7e6d57d17d9f68b3e0d6a0244 /server/src/com/vaadin/ui/AbstractComponent.java | |
parent | 19efa87103b037ef600cdb662a7e3b10a6f626ce (diff) | |
download | vaadin-framework-cdc07e55c12dc4ffbe509e15c4f4f165fb4a1670.tar.gz vaadin-framework-cdc07e55c12dc4ffbe509e15c4f4f165fb4a1670.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(); |