diff --git a/ApplicationLibCode/UserInterface/RiuMdiArea.cpp b/ApplicationLibCode/UserInterface/RiuMdiArea.cpp index 4e7742a32a..ade46e5e57 100644 --- a/ApplicationLibCode/UserInterface/RiuMdiArea.cpp +++ b/ApplicationLibCode/UserInterface/RiuMdiArea.cpp @@ -112,6 +112,9 @@ std::list RiuMdiArea::subWindowListSortedByVerticalPosition() //-------------------------------------------------------------------------------------------------- void RiuMdiArea::tileWindowsHorizontally() { + // Make sure that all windows are windowed and not maximized + tileSubWindows(); + QPoint position( 0, 0 ); for ( auto* window : subWindowListSortedByPosition() ) @@ -129,6 +132,9 @@ void RiuMdiArea::tileWindowsHorizontally() //-------------------------------------------------------------------------------------------------- void RiuMdiArea::tileWindowsVertically() { + // Make sure that all windows are windowed and not maximized + tileSubWindows(); + auto windowList = subWindowListSortedByVerticalPosition(); QPoint position( 0, 0 );