From: Artur Signell Date: Wed, 14 Mar 2012 14:19:35 +0000 (+0200) Subject: Real fix for TabSheet TestBench compatibility X-Git-Tag: 7.0.0.alpha2~319 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ceaebab422bdd43916734fb8cc0d9c422ce6bb1b;p=vaadin-framework.git Real fix for TabSheet TestBench compatibility --- diff --git a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java index f6aaf3edd3..fa8b3fc179 100644 --- a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java +++ b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java @@ -466,10 +466,10 @@ public class ComponentLocator { continue; } - if (w instanceof VTabsheetPanel && !"0".equals(indexString)) { + if (w instanceof VTabsheetPanel && widgetPosition != 0) { // TabSheetPanel now only contains 1 connector => the index // is always 0 which indicates the widget in the active tab - indexString = "0"; + widgetPosition = 0; } /*