Ok, about 8 months ago, I used Gwt 2.5 & got this problem.

The problem is that when I click on an item in a tree that is located 
inside a scrollpanel, it makes the vertical scroll bar jump up. See my 
question 
http://stackoverflow.com/questions/19131318/when-click-on-an-item-in-a-tree-it-makes-the-vertical-scroll-bar-jump-up


A man suggested me a hacking code to fix that bug.

Tree testTree=new Tree(){

        public void onBrowserEvent(Event event) {
            if (DOM.eventGetType(event) == Event.ONCLICK) {

                return;
            }

            if (DOM.eventGetType(event) == Event.ONMOUSEDOWN) {
                //int s = scrollPanel.getVerticalScrollPosition();
                int scrollLeftInt = Window.getScrollLeft();
                int scrollTopInt = Window.getScrollTop();
                DOM.setStyleAttribute(this.getElement(), "position",
                        "fixed");
                super.onBrowserEvent(event);
                DOM.setStyleAttribute(this.getElement(), "position",
                        "static");

                //scrollPanel.setVerticalScrollPosition(s);
                Window.scrollTo(scrollLeftInt,scrollTopInt);
                return;
            }

            super.onBrowserEvent(event);
        }

    };


Now recently I have just install the GWT2.6 & when clicking on the item it 
seems ok but it has just a little bit of shaking (only happened in IE not 
in CHrome). FOr a normal users this is not a big issue but for a very picky 
person they will not be very happy. So I removed the hacking code & it's 
seem to be ok in IE or Chrome.

So I assumed that Google fixed that bug.But i want to make sure if Google 
actually fixed that bug so that I can remove the hacking code completely.

Can anyone answer me if Google fixed that bug?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to