1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-12 22:43:36 -04:00

fix: sizeToContents expand minimumSize to minimumSizeHint to fix grip/border inconsistency

Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/95e778a0-c64c-4fd5-a047-c22eb0013715

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-19 12:11:38 +00:00
committed by GitHub
parent 2bbe19af46
commit 61018c8e5c
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -336,7 +336,9 @@ void FeatureGUI::sizeToContents()
size = size.expandedTo(m_topLayout->minimumSize());
size.setHeight(size.height() + getAdditionalHeight());
size.setWidth(size.width() + m_resizer.m_gripSize * 2);
setMinimumSize(size);
// m_resizer enforces minimumSizeHint() while m_sizeGripBottomRight enforces minimumSize().
// Ensure both are consistent by making minimumSize() at least as large as minimumSizeHint().
setMinimumSize(size.expandedTo(minimumSizeHint()));
}
void FeatureGUI::maximizeWindow()