]> source.dussan.org Git - vaadin-framework.git/commitdiff
small fix
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Fri, 2 Nov 2007 08:00:04 +0000 (08:00 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Fri, 2 Nov 2007 08:00:04 +0000 (08:00 +0000)
svn changeset:2668/svn branch:trunk

src/com/itmill/toolkit/ui/AbstractLayout.java

index 88ea27174c2d9d794fe6e82ade1031857e9aaf54..a35ace0f873abadeda7cca0e58e8529ce750ba8c 100644 (file)
@@ -20,7 +20,7 @@ public abstract class AbstractLayout extends AbstractComponentContainer
         * is set to true, if the client-side implementation should leave extra
         * space at that edge.
         */
-       private boolean[] margins;
+       protected boolean[] margins;
 
        /**
         * Height of the layout. Set to -1 for undefined height.
@@ -197,7 +197,7 @@ public abstract class AbstractLayout extends AbstractComponentContainer
                        target.addAttribute("height", getHeight()
                                        + UNIT_SYMBOLS[getHeightUnits()]);
                if (getWidth() > -1)
-                       target.addAttribute("height", getWidth()
+                       target.addAttribute("width", getWidth()
                                        + UNIT_SYMBOLS[getWidthUnits()]);
        }