Changeset 4950

Show
Ignore:
Timestamp:
06/24/08 15:28:38 (5 months ago)
Author:
marc.englund@…
Message:

More for #1770; tabscrolling buttons clipped in some instances.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java

    r4944 r4950  
    326326     */ 
    327327    private void updateTabScroller() { 
    328  
    329         DOM.setStyleAttribute(tabs, "width", getOffsetWidth() + "px"); 
    330  
     328        if (width != null) { 
     329            DOM.setStyleAttribute(tabs, "width", width); 
     330        } 
    331331        if (scrollerIndex > tb.getTabCount()) { 
    332332            scrollerIndex = 0; 
     
    335335        boolean clipped = isClippedTabs(); 
    336336        if (tb.isVisible() && (scrolled || clipped)) { 
    337             DOM.setStyleAttribute(scrollerNext, "display", ""); 
    338             DOM.setStyleAttribute(scrollerPrev, "display", ""); 
     337            DOM.setStyleAttribute(scroller, "display", ""); 
    339338            DOM.setElementProperty(scrollerPrev, "className", 
    340339                    SCROLLER_CLASSNAME + (scrolled ? "Prev" : "Prev-disabled")); 
     
    342341                    SCROLLER_CLASSNAME + (clipped ? "Next" : "Next-disabled")); 
    343342        } else { 
    344             DOM.setStyleAttribute(scrollerNext, "display", "none"); 
    345             DOM.setStyleAttribute(scrollerPrev, "display", "none"); 
     343            DOM.setStyleAttribute(scroller, "display", "none"); 
    346344        } 
    347345