0

On the project I am working on I have a dataview inside a panel which is constrained in size. I am having trouble figuring out how I can put scrollbars on the view to make sure that all the items in the dataview can all be displayed if they overflow the size of the dataview/panel. My code is very similar to that on http://try.sencha.com/extjs/4.0.7/examples/view/data-view/viewer.html.

If you edit this code and change the width of the dataview to something smaller e.g. 310 you will see that the images overflow the panel and are hidden. How can I put a scrollbar on this so that I can scroll to the hidden items? I have tried 'autoscroll: true' to no effect.

1 Answer 1

1

Your casing is wrong for autoScroll. Capitalize the S and it should work:

Ext.create('Ext.view.View', {
    store: store,
    autoScroll: true,
    ///...
})
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.