-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Wrap text): The feature work unexpected when scrollbar appear #5709
Comments
Hi, I think "BIZ UDGothic" is not a mono-width font and therefore not supported by ACE (See #460). Can you confirm this bug is still there when using the default font? |
Hi @whazor , |
@skillcrushbinguyen when scrollbar appears the wrapping changes in textarea and other editors as well. Which behavior do you expect instead of that? |
@nightwing My expectation is that the line will not break when the scrollbar appears. In the demo above, the character 91 should persist in the first line |
But then where should the scrollbar go? it will either cover the text or editor size will have to change, or we would have to reserve space from the start and always display 91 on the second line. |
Describe the bug
When I set a fixed width for editor and configured wrap option is true. The editor work un-correct when the scrollbar appear.
This is a evident
Expected Behavior
The line breaks correctly when reaching container width with and without the scrollbar
Current Behavior
When the scrollbar appears some of the characters were break to new lines because the width of the editor change
Reproduction Steps
Paste the content to editor and press Enter key until the scrollbar appear
0123456789012345678901234567890123456789
Possible Solution
No response
Additional Information/Context
I put the demo here to easy reproduce the problem
https://jsfiddle.net/binguyen858/nsteLdg3/6/
Ace Version / Browser / OS / Keyboard layout
Ace version: 1.9,6
Browser: Chrome
Keyboard layout: ENG
The text was updated successfully, but these errors were encountered: