tdf#91971: Add the menubar size to the height computation too.
Change-Id: Ic03dc9e811df624ca492cd2688a30a1e07fe6496
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 12a77f0..c81c18f 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -338,8 +338,18 @@ void BackingWindow::initControls()
Resize();
// compute the menubar height
sal_Int32 nMenuHeight = 0;
SystemWindow* pSystemWindow = GetSystemWindow();
if (pSystemWindow)
{
MenuBar* pMenuBar = pSystemWindow->GetMenuBar();
if (pMenuBar)
nMenuHeight = pMenuBar->ImplGetWindow()->GetOutputSizePixel().Height();
}
set_width_request(mpAllRecentThumbnails->get_width_request() + mpAllButtonsBox->GetOptimalSize().Width());
set_height_request(mpAllButtonsBox->GetOptimalSize().Height());
set_height_request(nMenuHeight + mpAllButtonsBox->GetOptimalSize().Height());
}
void BackingWindow::initializeLocalView()