Skip to content

Commit

Permalink
[GUI] Transaction detail, scroll memo fix, starting from the top.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Dec 11, 2020
1 parent 6a2fb3e commit 711af22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qt/pivx/sendconfirmdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ void TxDetailDialog::setData(WalletModel *_model, const QModelIndex &index)
ui->contentMemo->setVisible(true);
ui->labelDividerMemo->setVisible(true);
ui->textMemo->adjustSize();
ui->textMemo->moveCursor(QTextCursor::Start);
ui->textMemo->ensureCursorVisible();
} else {
ui->contentMemo->setVisible(false);
ui->labelDividerMemo->setVisible(false);
Expand Down Expand Up @@ -211,6 +213,8 @@ void TxDetailDialog::setData(WalletModel *_model, WalletModelTransaction* _tx)
ui->textMemo->insertPlainText(recipient.message);
ui->contentMemo->setVisible(true);
ui->labelDividerMemo->setVisible(true);
ui->textMemo->moveCursor(QTextCursor::Start);
ui->textMemo->ensureCursorVisible();
} else {
ui->contentMemo->setVisible(false);
ui->labelDividerMemo->setVisible(false);
Expand Down

0 comments on commit 711af22

Please sign in to comment.