View Full Version : Draggable element, scrollbar position

19 Oct 2012, 12:47 AM

I am using draggable elements inside a Container with autoScroll: true.
When dragging the element outside of the actual container size, the scrollbar doesn't activate and the element is half hidden.

However when the movement is over, the container size did get bigger and scrollbar exists, allowing me to see the element totally.
Is there a way to make the container bigger and scrollbar move with the element?


23 Oct 2012, 6:34 AM
Did you check out the Ext.dd.ScrollManager?

24 Oct 2012, 1:50 AM
Not sure to know where and how using it...I tried this in my initComponent function, after creating the 'myContainer', but didn't worked...var el = Ext.get (http://docs.sencha.com/ext-js/4-1/#!/api/Ext-method-get)('myContainer');Ext.dd.ScrollManager.register (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.dd.ScrollManager-method-register)(el);