aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorTeemu Pòˆntelin <teemu@vaadin.com>2014-03-11 19:45:38 +0200
committerVaadin Code Review <review@vaadin.com>2014-03-14 10:02:05 +0000
commit1881ea8afd23e79a6ebbc9ce051944e14c696fd1 (patch)
tree9b79db81503f98117bd13b85ae5beca2bd5c5589 /client/src
parent3e53fa6d15edb11f938095f70ba4bc292d422b5c (diff)
downloadvaadin-framework-1881ea8afd23e79a6ebbc9ce051944e14c696fd1.tar.gz
vaadin-framework-1881ea8afd23e79a6ebbc9ce051944e14c696fd1.zip
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
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/ui/VTabsheet.java4
1 files changed, 1 insertions, 3 deletions
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