[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 21 13:21:17 UTC 2018


 vcl/source/window/layout.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit d6102e05a1efe9eca9d72caac9cddca78ced4bfe
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Nov 21 11:04:41 2018 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Nov 21 14:20:54 2018 +0100

    Resolves: tdf#121547 do normal dialog layout first
    
    then, if still too small, re-layout with the bigger size
    
    Change-Id: I1425e7a55dced4bd93e365a38383eda07fb16d16
    Reviewed-on: https://gerrit.libreoffice.org/63707
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 837d429c82b5..b68fd2dbcba1 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -2481,6 +2481,7 @@ void MessageDialog::set_secondary_text(const OUString &rSecondaryString)
 
 void MessageDialog::StateChanged(StateChangedType nType)
 {
+    Dialog::StateChanged(nType);
     if (nType == StateChangedType::InitShow)
     {
         // MessageBox should be at least as wide as to see the title
@@ -2488,9 +2489,11 @@ void MessageDialog::StateChanged(StateChangedType nType)
         // Extra-Width for Close button
         nTitleWidth += mpWindowImpl->mnTopBorder;
         if (get_preferred_size().Width() < nTitleWidth)
+        {
             set_width_request(nTitleWidth);
+            DoInitialLayout();
+        }
     }
-    Dialog::StateChanged(nType);
 }
 
 VclVPaned::VclVPaned(vcl::Window *pParent)


More information about the Libreoffice-commits mailing list