Home Ask Login Register

Developers Planet

Your answer is one click away!

Jacobian February 2016

Treepanel with scrollbar in ExtJS 6

It seems like ExtJs 6 looks good and fast, because there are still myriads of bugs. For example, I cannot add a vertical scrollbar to the treepanel. As a result when there are too many nodes, I'm unable to scroll through all of them. This is what I tried:

    xtype: "treepanel",
    scrollable: true, // <-- Does not work!
    autoScroll: true, // <-- Does not work!

I wonder why such primitive things stopped working in modern ExtJs. I hope there is some magic mantra that can fix it.


tonymayoral February 2016

It depends on the container's layout config. Try this:

    xtype: 'panel',
    layout: 'fit',
    items: [{
        xtype: "treepanel",
        scrollable: true

Post Status

Asked in February 2016
Viewed 3,911 times
Voted 12
Answered 1 times


Leave an answer

Quote of the day: live life