diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-29 14:01:09 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-11-23 16:26:16 +0100 |
commit | b12fb9eaeb5941cbbecfd79767ced2d88d2842af (patch) | |
tree | 0555b62a1dfa30c7e3a944b299edfd3d6ee2502a /sfx2 | |
parent | 4d0a45a091ecfcd9473b3a3a9b810d81cf6bd82e (diff) |
Resolves: rhbz#1400287 resizing properties dialog hides widgets
Change-Id: I5d066f53c5bdfb4dd50d60c5cb4b66e425c0293c
Reviewed-on: https://gerrit.libreoffice.org/41698
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit 7040862125fb1d805286771c26f6b51396cfb145)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index b2bcbf23c41d..f8dc73daedf5 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1505,6 +1505,7 @@ CustomPropertiesWindow::CustomPropertiesWindow(vcl::Window* pParent, m_aDurationField->SetPosSizePixel(aPos, aSize); m_aDateField->SetPosSizePixel(aPos, aSize); m_aTimeField->SetPosSizePixel(aPos, aSize); + m_aYesNoButton->SetPosSizePixel(aPos, aSize); m_aEditLoseFocusIdle.SetPriority( SchedulerPriority::LOWEST ); m_aEditLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) ); @@ -1795,12 +1796,13 @@ void CustomPropertiesWindow::updateLineWidth() vcl::Window** pCurrent = pWindows; vcl::Window** pNewCurrent = pNewWindows; - while ( *pCurrent ) + while (*pCurrent) { - Size aSize = (*pCurrent)->GetSizePixel(); - Point aPos = (*pCurrent)->GetPosPixel(); - aPos.Y() = (*pNewCurrent)->GetPosPixel().Y(); - (*pNewCurrent)->SetPosSizePixel( aPos, aSize ); + Size aSize = (*pNewCurrent)->GetSizePixel(); + aSize.Width() = (*pCurrent)->GetSizePixel().Width(); + Point aPos = (*pNewCurrent)->GetPosPixel(); + aPos.X() = (*pCurrent)->GetPosPixel().X(); + (*pNewCurrent)->SetPosSizePixel(aPos, aSize); pCurrent++; pNewCurrent++; } |