couchdb-fauxton icon indicating copy to clipboard operation
couchdb-fauxton copied to clipboard

Problem scrolling to end of a long line in Ace editor

Open garrensmith opened this issue 7 years ago • 4 comments

There's a bug with the Ace editor configuration (full page + elsewhere) where if you have a single very long line of text - long enough to make the horizontal scrollbar appear, you can't scroll to the very end of the line. This occurs in all browsers. It looks like the editor is failing to take into account the width of the vertical scrollbar, so the final 1 or 2 characters get hidden.

I spent some time investigating this thinking it was our bug, but it turns out to be a bug with Ace itself. I've opened a ticket here: https://github.com/ajaxorg/ace/issues/2360

Taken from https://issues.apache.org/jira/browse/COUCHDB-2586

garrensmith avatar Mar 16 '17 13:03 garrensmith

Try window.dispatchEvent(new Event('resize')); This will fix the problem temporarily.

kanchansrivastava avatar Jun 19 '18 09:06 kanchansrivastava

I am new to Ace editor, and I have that problem also. You can try at https://ace.c9.io/#nav=about, and input long text. But that problem didn't happen at version 1.2.9.. Now i switch to use old version.

hungdh1405 avatar Jan 07 '19 17:01 hungdh1405

I just tested on the ace.c9.io website and I can't see the problem. Can you share a gif of how to reproduce the issue?

popojargo avatar Jan 07 '19 19:01 popojargo

I am facing the same issue in the latest version. image When I moved to the older version as suggested by hungdh1405, it's working fine. It works till 1.3.3 and it has a problem from 1.4.0 and above.

cbmgit avatar Mar 16 '19 13:03 cbmgit

No longer an issue in Fauxton.

Antonio-Maranhao avatar Feb 03 '23 02:02 Antonio-Maranhao