]> source.dussan.org Git - vaadin-framework.git/commitdiff
Compensate for borders when size is not undefined (#8313)
authorLeif Åstrand <leif@vaadin.com>
Thu, 15 Mar 2012 10:38:28 +0000 (12:38 +0200)
committerLeif Åstrand <leif@vaadin.com>
Thu, 15 Mar 2012 10:38:28 +0000 (12:38 +0200)
src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java

index 5b14bede1d8cea62aa234efe1bd88afbf6d1dce7..f6f14b47aa612d903bf636fd596c0138b0bef2f0 100644 (file)
@@ -970,7 +970,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
             height = contentNode.getOffsetHeight();
         }
         if (!isDynamicWidth()) {
-            width = contentNode.getOffsetWidth();
+            width = contentNode.getOffsetWidth() - getContentAreaBorderWidth();
         } else {
             /*
              * If the tabbar is wider than the content we need to use the tabbar