Kaydet (Commit) 57d3e8b3 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: rhbz#1400287 resizing properties dialog hides widgets

Change-Id: I5d066f53c5bdfb4dd50d60c5cb4b66e425c0293c
Reviewed-on: https://gerrit.libreoffice.org/41696Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 3415764d
...@@ -1500,6 +1500,7 @@ CustomPropertiesWindow::CustomPropertiesWindow(vcl::Window* pParent, ...@@ -1500,6 +1500,7 @@ CustomPropertiesWindow::CustomPropertiesWindow(vcl::Window* pParent,
m_aDurationField->SetPosSizePixel(aPos, aSize); m_aDurationField->SetPosSizePixel(aPos, aSize);
m_aDateField->SetPosSizePixel(aPos, aSize); m_aDateField->SetPosSizePixel(aPos, aSize);
m_aTimeField->SetPosSizePixel(aPos, aSize); m_aTimeField->SetPosSizePixel(aPos, aSize);
m_aYesNoButton->SetPosSizePixel(aPos, aSize);
m_aEditLoseFocusIdle.SetPriority( TaskPriority::LOWEST ); m_aEditLoseFocusIdle.SetPriority( TaskPriority::LOWEST );
m_aEditLoseFocusIdle.SetInvokeHandler( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) ); m_aEditLoseFocusIdle.SetInvokeHandler( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) );
...@@ -1790,12 +1791,13 @@ void CustomPropertiesWindow::updateLineWidth() ...@@ -1790,12 +1791,13 @@ void CustomPropertiesWindow::updateLineWidth()
vcl::Window** pCurrent = pWindows; vcl::Window** pCurrent = pWindows;
vcl::Window** pNewCurrent = pNewWindows; vcl::Window** pNewCurrent = pNewWindows;
while ( *pCurrent ) while (*pCurrent)
{ {
Size aSize = (*pCurrent)->GetSizePixel(); Size aSize = (*pNewCurrent)->GetSizePixel();
Point aPos = (*pCurrent)->GetPosPixel(); aSize.Width() = (*pCurrent)->GetSizePixel().Width();
aPos.Y() = (*pNewCurrent)->GetPosPixel().Y(); Point aPos = (*pNewCurrent)->GetPosPixel();
(*pNewCurrent)->SetPosSizePixel( aPos, aSize ); aPos.X() = (*pCurrent)->GetPosPixel().X();
(*pNewCurrent)->SetPosSizePixel(aPos, aSize);
pCurrent++; pCurrent++;
pNewCurrent++; pNewCurrent++;
} }
......
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