Skip to content

Commit

Permalink
fix Transaction tab resize issue
Browse files Browse the repository at this point in the history
  • Loading branch information
levoncrypto committed Aug 10, 2023
1 parent 66390e9 commit aa843c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void TransactionView::setModel(WalletModel *_model)
transactionView->setColumnWidth(TransactionTableModel::Date, DATE_COLUMN_WIDTH);
transactionView->setColumnWidth(TransactionTableModel::Type, TYPE_COLUMN_WIDTH);
transactionView->horizontalHeader()->setSectionResizeMode(TransactionTableModel::Amount, QHeaderView::Fixed);
transactionView->horizontalHeader()->setMinimumSectionSize(23);
transactionView->horizontalHeader()->setMinimumSectionSize(23);
transactionView->horizontalHeader()->setStretchLastSection(true);
transactionView->horizontalHeader()->setMaximumSectionSize(260);

Expand Down Expand Up @@ -432,7 +432,7 @@ void TransactionView::updateHeaderSizes(int logicalIndex, int oldSize, int newSi
{TransactionTableModel::Amount, amountWidget}
};

if(logicalIndex <= TransactionTableModel::ToAddress)
if(logicalIndex <= TransactionTableModel::Amount)
return;

for(std::pair<int, QWidget*> const & p : headerWidgets) {
Expand Down

0 comments on commit aa843c6

Please sign in to comment.