Skip to content

Commit

Permalink
Merge #2098: [Trivial][GUI] coin control: Fixed column size in list-mode
Browse files Browse the repository at this point in the history
373dd28 [Trivial][GUI] coin control: Fixed column size in list-mode (random-zebra)

Pull request description:

  Resizing column checkbox to contents in coin-control (introduced in #2070) seems to be cutting off part of the lock icon, for locked utxos, on windows, as reported by @NoobieDev12 .

  Let's set a default width of 70 then.
  Here's how it looks on linux/gnome

  ![Screenshot from 2020-12-22 11-32-09](https://user-images.githubusercontent.com/18186894/102879620-52a8e080-444a-11eb-8bf6-08c4833da1b7.png)

ACKs for top commit:
  furszy:
    ACK 373dd28
  Fuzzbawls:
    ACK 373dd28 on windows

Tree-SHA512: 142241b7651ed4d1e23b53aba6fdaed37bc4ff284adc290c82bda29a0f9bb6c759e814cf1a3160c0bef76336e2c56ed5fab017367b9ee7cc8b5614e3b37cb436
  • Loading branch information
random-zebra committed Dec 24, 2020
2 parents 98a487e + 373dd28 commit 6d8ee7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/coincontroldialog.cpp
Expand Up @@ -801,7 +801,7 @@ void CoinControlDialog::updateView()
// save COLUMN_CHECKBOX width for tree-mode
colCheckBoxWidth_treeMode = std::max(110, ui->treeWidget->columnWidth(COLUMN_CHECKBOX));
// minimize COLUMN_CHECKBOX width in list-mode (need to display only the check box)
ui->treeWidget->resizeColumnToContents(COLUMN_CHECKBOX);
ui->treeWidget->setColumnWidth(COLUMN_CHECKBOX, 70);
}

// sort view
Expand Down

0 comments on commit 6d8ee7e

Please sign in to comment.