[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Jun 7 14:11:21 UTC 2020


 sw/source/ui/index/cnttab.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 9c6e57342912e60d87d27d07787d6efa05147a20
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jun 6 19:17:59 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Jun 7 16:10:42 2020 +0200

    make table from objects page treeview a better size
    
    Change-Id: Ie7eee6d03633690461937ba9ad904ababcc4ea13
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95659
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 300d046df5d0..cbdb3c995196 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -756,6 +756,8 @@ SwTOXSelectTabPage::SwTOXSelectTabPage(weld::Container* pPage, weld::DialogContr
         m_xFromObjCLB->set_text(i, SwResId(RES_SRCTYPES[i].first), 1);
         m_xFromObjCLB->set_id(i, sId);
     }
+    m_xFromObjCLB->set_size_request(-1, std::max<int>(m_xFromObjCLB->get_preferred_size().Height(),
+                                                      m_xFromObjCLB->get_height_rows(SAL_N_ELEMENTS(RES_SRCTYPES))) + 2);
 
     SetExchangeSupport();
     m_xTypeLB->connect_changed(LINK(this, SwTOXSelectTabPage, TOXTypeHdl));


More information about the Libreoffice-commits mailing list