开发者

ExtJS Drag with Scroll

开发者 https://www.devze.com 2023-01-18 11:25 出处:网络
I have an interface pretty much identical to one located in the ExtJS examples page: here However, if you select items in the images panel, and then attempt to drag the scrollbar in any direction, th

I have an interface pretty much identical to one located in the ExtJS examples page: here

However, if you select items in the images panel, and then attempt to drag the scrollbar in any direction, the items are unselected and another drag instance is started. Makes sense on one level, but what if the user is trying to drag a large selection which involves panel scrolling?

Are there any quick fixes to allow me to drag and scroll without losing the drag selection?

Thanks!

Edit: Forgot to mention that this behaviour is reflected开发者_开发技巧 in the example listed above.


For those that are interested, I solved this by adding the following to the DataView:

        autoHeight:true, 
        autoWidth:true,
        style:'overflow:auto'

and added this to the Panel holding the DataView

        autoScroll:true
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号