Ace popup horizontal scrollbar

120 views
Skip to first unread message

Shweta Karol Minhas

unread,
Apr 1, 2014, 8:04:19 AM4/1/14
to ace-d...@googlegroups.com
Hi,

The popup list in my app contains many items that are longer than the popup width, but no horizontal scroll bar appears.

I tried using: 
        popup.setOption("hScrollBarAlwaysVisible", true);

But this adds a horizontal scroll bar without a scroll bar thumb to enable me to scroll to the right. What could be going wrong?

- Shweta

Harutyun Amirjanyan

unread,
Apr 4, 2014, 6:40:28 PM4/4/14
to ace-d...@googlegroups.com
Hi
horizontal scroll doesn't work because of this
https://github.com/ajaxorg/ace/blob/master/lib/ace/autocomplete/popup.js#L217
hack.

But should it add scrollbar or resizing the popup to fit contents is better?

Shweta Karol Minhas

unread,
Apr 14, 2014, 6:41:31 AM4/14/14
to ace-d...@googlegroups.com
Hi,

Thank you for your answer!
The api listing which makes up my custom completer has long method signatures. Resizing the popup to that extent would make it look ugly, hence the need for a horizontal scrollbar.

Regards,
Shweta
Reply all
Reply to author
Forward
0 new messages