Kaydet (Commit) 76f102e1 authored tarafından Caolán McNamara's avatar Caolán McNamara

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/43460Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 19a7c81d
...@@ -686,6 +686,7 @@ void FloatingWindow::StartPopupMode( const tools::Rectangle& rRect, FloatWinPopu ...@@ -686,6 +686,7 @@ void FloatingWindow::StartPopupMode( const tools::Rectangle& rRect, FloatWinPopu
// compute window position according to flags and arrangement // compute window position according to flags and arrangement
sal_uInt16 nArrangeIndex; sal_uInt16 nArrangeIndex;
DoInitialLayout();
mpImplData->maPos = ImplCalcPos( this, rRect, nFlags, nArrangeIndex ); mpImplData->maPos = ImplCalcPos( this, rRect, nFlags, nArrangeIndex );
SetPosPixel( mpImplData->maPos ); SetPosPixel( mpImplData->maPos );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment