Changeset 4947

Show
Ignore:
Timestamp:
06/24/08 12:34:45 (5 months ago)
Author:
matti.tahvonen@…
Message:

Panel now don't fire repaint on scroll position change made from client side

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/com/itmill/toolkit/ui/Panel.java

    r4942 r4947  
    296296        final Integer newScrollY = (Integer) variables.get("scrolltop"); 
    297297        if (newScrollX != null && newScrollX.intValue() != getScrollLeft()) { 
    298             setScrollLeft(newScrollX.intValue()); 
     298            // set internally, not to fire request repaint 
     299            scrollOffsetX = newScrollX.intValue(); 
    299300        } 
    300301        if (newScrollY != null && newScrollY.intValue() != getScrollTop()) { 
    301             setScrollTop(newScrollY.intValue()); 
     302            // set internally, not to fire request repaint 
     303            scrollOffsetY = newScrollY.intValue(); 
    302304        } 
    303305