ExtJS 4.0.7 scrollTo() scrolls but doesn't move scroll bar slider?

后端 未结 2 1400
南方客
南方客 2021-01-21 11:38

I have a tree panel and am trying to do an animated scroll to certain locations. I\'m doing something like this:

myTreePanel.getView().getEl().scrollTo(\'top\',          


        
2条回答
  •  执念已碎
    2021-01-21 11:55

    Not surprising. They use their own scrollbar. The correct code would be:

    myTreePanel.verticalScroller.setScrollTop(yCoord);
    

    However, it doesn't support animation either. So I recommend to get rid of custom scrollbar as I've described here and use your original code.

提交回复
热议问题