mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
fix: don't shrink window when setting minimum width
This commit is contained in:
parent
7c00c868d8
commit
e08068687c
@ -1419,7 +1419,9 @@ void BitcoinGUI::updateWidth()
|
||||
// Use nButtonsVisible + 1 <- for the dash logo
|
||||
int nWidth = std::max<int>(980, (nWidthWidestButton + 30) * (nButtonsVisible + 1));
|
||||
setMinimumWidth(nWidth);
|
||||
resize(nWidth, height());
|
||||
|
||||
// Resize to new minimum width but don't shrink window
|
||||
resize(std::max(width(), nWidth), height());
|
||||
}
|
||||
|
||||
void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, const QString& blockHash, double nVerificationProgress, bool header, SynchronizationState sync_state)
|
||||
|
@ -544,7 +544,9 @@ void OptionsDialog::updateWidth()
|
||||
// Add 10 per button as padding and use minimum 585 which is what we used in css before
|
||||
int nWidth = std::max<int>(585, (nWidthWidestButton + 10) * nButtonsVisible);
|
||||
setMinimumWidth(nWidth);
|
||||
resize(nWidth, height());
|
||||
|
||||
// Resize to new minimum width but don't shrink window
|
||||
resize(std::max(width(), nWidth), height());
|
||||
}
|
||||
|
||||
void OptionsDialog::showEvent(QShowEvent* event)
|
||||
|
Loading…
Reference in New Issue
Block a user