Blame SOURCES/0001-Resolves-rhbz-1400287-resizing-properties-dialog-hid.patch

91334d
From 98d7e0917f0e434e1e291e1d741715cd90161dc5 Mon Sep 17 00:00:00 2001
91334d
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
91334d
Date: Tue, 29 Aug 2017 14:01:09 +0100
91334d
Subject: [PATCH] Resolves: rhbz#1400287 resizing properties dialog hides
91334d
 widgets
91334d
MIME-Version: 1.0
91334d
Content-Type: text/plain; charset=UTF-8
91334d
Content-Transfer-Encoding: 8bit
91334d
91334d
Change-Id: I5d066f53c5bdfb4dd50d60c5cb4b66e425c0293c
91334d
Reviewed-on: https://gerrit.libreoffice.org/41696
91334d
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
91334d
Tested-by: Caolán McNamara <caolanm@redhat.com>
91334d
(cherry picked from commit 57d3e8b35d18c6fb329badbab8a8c28020253a40)
91334d
---
91334d
 sfx2/source/dialog/dinfdlg.cxx | 12 +++++++-----
91334d
 1 file changed, 7 insertions(+), 5 deletions(-)
91334d
91334d
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
91334d
index b2bcbf2..f8dc73d 100644
91334d
--- a/sfx2/source/dialog/dinfdlg.cxx
91334d
+++ b/sfx2/source/dialog/dinfdlg.cxx
91334d
@@ -1505,6 +1505,7 @@ CustomPropertiesWindow::CustomPropertiesWindow(vcl::Window* pParent,
91334d
     m_aDurationField->SetPosSizePixel(aPos, aSize);
91334d
     m_aDateField->SetPosSizePixel(aPos, aSize);
91334d
     m_aTimeField->SetPosSizePixel(aPos, aSize);
91334d
+    m_aYesNoButton->SetPosSizePixel(aPos, aSize);
91334d
 
91334d
     m_aEditLoseFocusIdle.SetPriority( SchedulerPriority::LOWEST );
91334d
     m_aEditLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) );
91334d
@@ -1795,12 +1796,13 @@ void CustomPropertiesWindow::updateLineWidth()
91334d
 
91334d
         vcl::Window** pCurrent = pWindows;
91334d
         vcl::Window** pNewCurrent = pNewWindows;
91334d
-        while ( *pCurrent )
91334d
+        while (*pCurrent)
91334d
         {
91334d
-            Size aSize = (*pCurrent)->GetSizePixel();
91334d
-            Point aPos = (*pCurrent)->GetPosPixel();
91334d
-            aPos.Y() = (*pNewCurrent)->GetPosPixel().Y();
91334d
-            (*pNewCurrent)->SetPosSizePixel( aPos, aSize );
91334d
+            Size aSize = (*pNewCurrent)->GetSizePixel();
91334d
+            aSize.Width() = (*pCurrent)->GetSizePixel().Width();
91334d
+            Point aPos = (*pNewCurrent)->GetPosPixel();
91334d
+            aPos.X() = (*pCurrent)->GetPosPixel().X();
91334d
+            (*pNewCurrent)->SetPosSizePixel(aPos, aSize);
91334d
             pCurrent++;
91334d
             pNewCurrent++;
91334d
         }
91334d
-- 
91334d
2.9.4
91334d