From: Leif Åstrand Date: Thu, 15 Mar 2012 10:38:28 +0000 (+0200) Subject: Compensate for borders when size is not undefined (#8313) X-Git-Tag: 7.0.0.alpha2~309^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=64d0d36e26a84c449f742cf7879af741c4de6904;p=vaadin-framework.git Compensate for borders when size is not undefined (#8313) --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java index 5b14bede1d..f6f14b47aa 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java @@ -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