]> source.dussan.org Git - vaadin-framework.git/commitdiff
Changed VPanel caption height measurement from captionNode to captionWrapper element...
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Mon, 22 Feb 2010 08:55:48 +0000 (08:55 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Mon, 22 Feb 2010 08:55:48 +0000 (08:55 +0000)
svn changeset:11448/svn branch:6.3

src/com/vaadin/terminal/gwt/client/ui/VPanel.java

index f9da8f67d953e5665aaae3247f222941bf50c3ea..85ad8399c2dc3541c4b9f99686f79ca40376011f 100644 (file)
@@ -393,7 +393,8 @@ public class VPanel extends SimplePanel implements Container {
         super.setHeight(height);
         if (height != null && height != "") {
             final int targetHeight = getOffsetHeight();
-            int containerHeight = targetHeight - captionNode.getOffsetHeight()
+            int containerHeight = targetHeight
+                    - captionNode.getParentElement().getOffsetHeight()
                     - bottomDecoration.getOffsetHeight()
                     - getContainerBorderHeight();
             if (containerHeight < 0) {