[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sc/source
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Tue Dec 1 10:03:24 UTC 2020
sc/source/ui/cctrl/checklistmenu.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit f046ea86e6185c4515f95abd2abdc3c544d44021
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Mon Nov 2 16:33:22 2020 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Dec 1 11:02:51 2020 +0100
Set height for autofilter dropdown
Change-Id: I2111773e9c8f871707f95a0ce24b472217afa8e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106905
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index 5d76250bed14..8c378849a83d 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -462,6 +462,7 @@ ScCheckListMenuControl::ScCheckListMenuControl(ScCheckListMenuWindow* pParent, v
bool bIsSubMenu = pParent->GetParentMenu();
int nChecksHeight = mxTreeChecks->get_height_rows(9);
+ int nDiffHeight = nChecksHeight - mxTreeChecks->get_preferred_size().Height();
if (!bIsSubMenu && nWidth != -1)
{
mnCheckWidthReq = nWidth - mxFrame->get_border_width() * 2 - 4;
@@ -518,6 +519,9 @@ ScCheckListMenuControl::ScCheckListMenuControl(ScCheckListMenuWindow* pParent, v
mxTreeChecks->set_size_request(mnCheckWidthReq, nChecksHeight);
mxListChecks->set_size_request(mnCheckWidthReq, nChecksHeight);
}
+
+ mxContainer->set_size_request(mxContainer->get_preferred_size().Width(),
+ mxContainer->get_preferred_size().Height() + nDiffHeight);
}
IMPL_LINK_NOARG(ScCheckListMenuControl, FocusHdl, weld::Widget&, void)
More information about the Libreoffice-commits
mailing list