From: Matti Tahvonen Date: Tue, 19 Aug 2008 10:19:20 +0000 (+0000) Subject: fixes #1969 X-Git-Tag: 6.7.0.beta1~4334 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cd6f2d98329d1d380e71ed5dcb6c96285d92698e;p=vaadin-framework.git fixes #1969 svn changeset:5213/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java index 1b5adf5690..79391cb3ca 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java @@ -215,20 +215,20 @@ public class ITabsheet extends ITabsheetBase implements if (isScrolledTabs() && DOM.compare(DOM.eventGetTarget(event), scrollerPrev)) { if (scrollerIndex > 0) { + scrollerIndex--; DOM.setStyleAttribute(DOM.getChild(DOM.getFirstChild(DOM .getFirstChild(tb.getElement())), scrollerIndex), "display", ""); - scrollerIndex--; updateTabScroller(); } } else if (isClippedTabs() && DOM.compare(DOM.eventGetTarget(event), scrollerNext)) { int tabs = tb.getTabCount(); if (scrollerIndex + 1 <= tabs) { - scrollerIndex++; DOM.setStyleAttribute(DOM.getChild(DOM.getFirstChild(DOM .getFirstChild(tb.getElement())), scrollerIndex), "display", "none"); + scrollerIndex++; updateTabScroller(); } } else {