summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-17 15:13:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-17 17:27:37 +0200
commit76f102e1a96c7e0906afb11854dd5c9e24247ccb (patch)
tree4678ec8dcea1cbd5a7cb2cc4370c32ade63c1600
parent19a7c81d3ce2a8a7b9a6ed305e474a80fd286ddf (diff)
tdf#112845 get optimal size before showing popups
because in rtl mode we need to know the final size in order to position it correctly according to the right edge Change-Id: Ia701626968f828fd23ab1637ed6171d0e3367c16 Reviewed-on: https://gerrit.libreoffice.org/43460 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/window/floatwin.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index 46b7b330efee..57c5f7ec26a8 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -686,6 +686,7 @@ void FloatingWindow::StartPopupMode( const tools::Rectangle& rRect, FloatWinPopu
// compute window position according to flags and arrangement
sal_uInt16 nArrangeIndex;
+ DoInitialLayout();
mpImplData->maPos = ImplCalcPos( this, rRect, nFlags, nArrangeIndex );
SetPosPixel( mpImplData->maPos );