Jump to content

Treemenu scroll function but scrollbar not visible


mierlp

Recommended Posts

Hi

Is it possible to have the scrollbar functionality within a treemenu BUT NOT have the scrollbar visible 

My treemenu has a lot of items/submenu's so the scroll function has to work without showing the scrollbar

Regards Peter

 

Link to comment
Share on other sites

On 4/12/2021 at 12:39 AM, mierlp said:

Does not work...with this code the application doesn't start up anymore.
When i disable/mark-out the code in afterrender, mouse-over,mouse-out 
the application start.

Try this code:

function afterCreate(sender)
{
    var me = sender;
    me.addListener('mouseout', function() {
        me.treeMenu.getEl().setStyle('overflow', 'hidden')
    });
    me.addListener('mouseover', function() {
        me.treeMenu.getEl().setStyle('overflow', 'auto')
    });
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...