viewportChange event doesn't fire if cursor isn't on first or last line #2955
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the cursor is not on the first or last line, adding or removing a line will not cause the
viewportChangeevent to fire, even though the value returned bygetViewport()has changed.For example, in the Autoresize Demo, positioning the cursor on the last line and pressing enter twice and delete once triggers three
viewportChangeevents. After moving to the second-to-last line, pressing enter does not trigger any viewport events.Video: http://files.ryanberdeen.com/Ykzd, JSFiddle: http://jsfiddle.net/also/93n7q8rw/2/embedded/result/
Good point. Attached patch fixes this.