diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-29 14:01:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-08-29 15:13:38 +0200 |
commit | 57d3e8b35d18c6fb329badbab8a8c28020253a40 (patch) | |
tree | 4b9cc6f8f75c015cec60a60beb3b28005f8ac2e9 /sfx2 | |
parent | 3415764d00044a19568b3a1b5d5382c73a0342c9 (diff) |
Resolves: rhbz#1400287 resizing properties dialog hides widgets
Change-Id: I5d066f53c5bdfb4dd50d60c5cb4b66e425c0293c
Reviewed-on: https://gerrit.libreoffice.org/41696
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.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 b72b6055f8ce..f1e1c7678386 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1500,6 +1500,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( TaskPriority::LOWEST ); m_aEditLoseFocusIdle.SetInvokeHandler( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) ); @@ -1790,12 +1791,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++; } |