diff --git a/sdrgui/channel/channelgui.cpp b/sdrgui/channel/channelgui.cpp index af5ab6253..a5f819d18 100644 --- a/sdrgui/channel/channelgui.cpp +++ b/sdrgui/channel/channelgui.cpp @@ -377,7 +377,9 @@ void ChannelGUI::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())); // Restrict size of window to size of desktop DialogPositioner::sizeToDesktop(this); diff --git a/sdrgui/feature/featuregui.cpp b/sdrgui/feature/featuregui.cpp index acd8e69e7..62db852dd 100644 --- a/sdrgui/feature/featuregui.cpp +++ b/sdrgui/feature/featuregui.cpp @@ -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()