securingsincity / react-ace

React Ace Component
http://securingsincity.github.io/react-ace/
MIT License
4.02k stars 603 forks source link

Horizontal scrollbar is not visible #1834

Open NiedziolkaMichal opened 1 year ago

NiedziolkaMichal commented 1 year ago

Problem

When showGutter is set to false and value is wider than the containing window, horizontal scrollbar is not shown. I have noticed that manual scrolling by text selection fixes the problem, as well as replacing the value. Both of those, are unfortunately, not a good solutions that I could use in production.

Sample code to reproduce your issue

      <AceEditor
        showGutter={false}
        value={`function onLoad(editor) console.log("i've ladsadsadsadasdasdsadasdasdasdasdasdasdas");
}`}/>