diff options
-rw-r--r-- | vcl/source/window/window.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index c4ef69e6d07c..cf56c9331e5e 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -2836,6 +2836,10 @@ void Window::setPosSizePixel( long nX, long nY, pWindow->mpWindowImpl->mpFrame->SetPosSize( nX, nY, nWidth, nHeight, nSysFlags ); + // Adjust resize with the hack of different client size and frame geometries to fix + // native menu bars. Eventually this should be replaced by proper mnTopBorder usage. + pWindow->mpWindowImpl->mpFrame->GetClientSize(nWidth, nHeight); + // Resize should be called directly. If we haven't // set the correct size, we get a second resize from // the system with the correct size. This can be happened |