This PR updates the wrapLines setting to affect the text view's text container size. This fixes the horizontal scrolling bugs seen recently. In effect, it locks the width of the text view to the width of the visible container when wrapLines is set to true, and lets the text view determine it's own width when false.
This is done by accounting for the ruler view size when wrapLines is set to true. It also makes sure to update the text container and text view frame size as needed when the ruler or window size change and when the wrapLines setting is updated.
Description
This PR updates the
wrapLines
setting to affect the text view's text container size. This fixes the horizontal scrolling bugs seen recently. In effect, it locks the width of the text view to the width of the visible container whenwrapLines
is set totrue
, and lets the text view determine it's own width whenfalse
.This is done by accounting for the ruler view size when
wrapLines
is set to true. It also makes sure to update the text container and text view frame size as needed when the ruler or window size change and when thewrapLines
setting is updated.Related Issues
148
158
164
Checklist
Screenshots
https://user-images.githubusercontent.com/35942988/233697019-7b13d78d-b50c-4c61-b58c-28a8695d8a54.mov