Skip to content

Commit

Permalink
support page up/down in text editor
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Mar 22, 2024
1 parent 93cb9ed commit da9a802
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vstgui/lib/ctexteditor.cpp
Expand Up @@ -612,6 +612,8 @@ void TextEditorView::parentSizeChanged ()
This->setViewSize (viewSize);
if (makeCursorVisible)
This->onCursorChanged (-1, This->md.editState.cursor);
This->md.editState.row_count_per_page =
This->getVisibleViewSize ().getHeight () / This->md.lineHeight;
};
auto frame = getFrame ();
if (frame && frame->inEventProcessing ())
Expand Down

0 comments on commit da9a802

Please sign in to comment.