Open marinsokol5 opened 4 months ago
Seems to be intentional, the code is in https://github.com/ajaxorg/ace/blob/master/src/virtual_renderer.js#L1053 and https://github.com/ajaxorg/ace/blob/master/src/virtual_renderer.js#L1081.
It might make sense to only enable the vertical scrollbar but not the horizontal one to still allow the Ace as Input component use case.
Describe the bug
If you create an editor using the
minLines
/maxLines
API, so something likewhich I added to the resize demo: https://github.com/ajaxorg/ace/blob/master/demo/autoresize.html
the vertical scrollbar is not shown for less than 3 lines, see below:
Expected Behavior
I expect it to be shown as a user doesn't have a good indication right now that there is more content underneath.
It's shown for 3 or more lines correctly.
Current Behavior
Scrollbar is not rendered.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
Ace Version / Browser / OS / Keyboard layout
1.32.6