Edward Edward
unread,Dec 12, 2011, 2:15:16 PM12/12/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
Hi
I've been trying to get the horizontal scrollbar to not cover the last line in a document.
I have found that setting word wrap on and disabling the horizontal scrollbar sort of works - but really it's just removing the scrollbar,
not fixing the problem.
I keep seeing this on FF 8.0 for OS X and Linux. I haven't checked Windows.
Is there something I'm doing incorrectly that is causing this?
If I use setUseWrapMode it fixes it.. sort of. It's like it
has to be after a certain point or it doesn't work. I used
setTimeout(function() {
aceEditor.getSession().setUseWrapMode(false);
}, 500);
It seems like things happen in this order (This is speculation, I'm unsure of how everything works)
onResize is being called before the horizontal scrollbar is drawn
The vertical scroll bar extends to scroller.clientHeight
The scroller content extends to scroller.clientHeight
The horizontal scrollbar is drawn (?)