Horizontal Scrollbar covering last line in Firefox

116 views
Skip to first unread message

Edward Edward

unread,
Dec 12, 2011, 2:15:16 PM12/12/11
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 (?)

janderson

unread,
Feb 23, 2012, 4:07:01 AM2/23/12
to ace-d...@googlegroups.com
Hi !

I have the same behavior with FF10.2 on Windows XP, not present with chrome.

Do we need to open an issue on GitHub ?

Thanks

Jérôme Andanson

unread,
Mar 6, 2012, 8:59:49 AM3/6/12
to ace-d...@googlegroups.com
I fix it, using the last build 0.2 rev 701 AND use of ace-noconflict.js instead of ace.jst
Reply all
Reply to author
Forward
0 new messages