In ensureCursorVisible(), make sure both the top *and* bottom of the cursor is visible, not just the center.
In ensureCursorVisible(), make sure both the top *and* bottom of the cursor is visible,
not just the center.

corinthia/corinthia-editor,corinthia/corinthia-editor,corinthia/corinthia-editor,corinthia/corinthia-editorlib,corinthia/corinthia-editorlib,corinthia/corinthia-editor,corinthia/corinthia-editorlib,corinthia/corinthia-editorlib,corinthia/corinthia-editorlib,corinthia/corinthia-editor