Skip to content

Commit 79374e2

Browse files
committed
skip applying floating size constraints for undocked frame
Skip applying floating size constraints while the dock's group is still in the main layout - fixes the top row growing taller on undock.
1 parent 498adcc commit 79374e2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

framework/dockwindow_v2/internal/dockbase.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,10 @@ void DockBase::applySizeConstraints()
712712

713713
KDDockWidgets::Core::Group* group = groupForDockWidget(m_dockWidget);
714714

715+
if (m_floating && group && group->isInMainWindow()) {
716+
return;
717+
}
718+
715719
if (group) {
716720
group->view()->setMinimumSize(minimumSize);
717721
group->view()->setMaximumSize(maximumSize);

0 commit comments

Comments
 (0)