From 1881ea8afd23e79a6ebbc9ce051944e14c696fd1 Mon Sep 17 00:00:00 2001 From: Teemu Pòˆntelin Date: Tue, 11 Mar 2014 19:45:38 +0200 Subject: Fix for width issue of TabSheet (#12805) Width of v-tabsheet-tabcontainer was set by copying the width from the ComponentConnector. This produced an incorrect result when a relative width (other than 100%) was used. Fixed by assigning the width to 100% when the TabSheet has a defined width. Change-Id: I7f128f87406e6e00ceda9ee6e75dcc5539e283b6 --- client/src/com/vaadin/client/ui/VTabsheet.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'client') diff --git a/client/src/com/vaadin/client/ui/VTabsheet.java b/client/src/com/vaadin/client/ui/VTabsheet.java index a3d96983e8..7d87650e24 100644 --- a/client/src/com/vaadin/client/ui/VTabsheet.java +++ b/client/src/com/vaadin/client/ui/VTabsheet.java @@ -955,9 +955,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable, */ private void updateTabScroller() { if (!isDynamicWidth()) { - ComponentConnector paintable = ConnectorMap.get(client) - .getConnector(this); - DOM.setStyleAttribute(tabs, "width", paintable.getState().width); + DOM.setStyleAttribute(tabs, "width", "100%"); } // Make sure scrollerIndex is valid -- cgit v1.2.3