Skip to content

Commit

Permalink
Github Issue #12: Fixing initial cursor position and updating MkTextE…
Browse files Browse the repository at this point in the history
…dit while opening documents for the first time
  • Loading branch information
AngryFender committed Sep 13, 2023
1 parent 5345608 commit 1c49230
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mkedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ void MkEdit::initialialCursorPosition()
QTextCursor cursor = this->textCursor();
cursor.movePosition(QTextCursor::End, QTextCursor::MoveAnchor);
this->setTextCursor(cursor);
this->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
this->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
this->update();
this->verticalScrollBar()->setSliderPosition(0);

int savedBlockNumber = cursor.blockNumber();
Expand Down

0 comments on commit 1c49230

Please sign in to comment.