diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-07 12:37:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-08 20:56:09 +0100 |
commit | 6bdabb9e14231b46b888810856a3bd3b11ff5128 (patch) | |
tree | cc660a1439610e54b621fc7f1deac5009199cc48 | |
parent | 9cfa3e086dc3be2b797edcc0e5ef2596b556cf7f (diff) |
Resolves: tdf#147722 ScrolledWindow expands beyond buttonbox
Change-Id: Iaf65bf681739c7fc2c7cb14851621442a861c234
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131108
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 5 | ||||
-rw-r--r-- | vcl/source/window/layout.cxx | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 51f8b64caf34..0cbd1c350752 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -90,6 +90,11 @@ ScTabPageSortFields::ScTabPageSortFields(weld::Container* pPage, weld::DialogCon , m_xBox(m_xBuilder->weld_container("SortKeyWindow")) , m_aSortWin(m_xBox.get()) { + // tdf#147722 set some nominal small default height so the height adapts + // to all the other contents and the natural height of this widget isn't + // an input into the overall size + m_xScrolledWindow->set_size_request(-1, 42); + Init(); m_aIdle.SetInvokeHandler(LINK(this, ScTabPageSortFields, ScrollToEndHdl)); diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 995ae09a0c9e..5cd885ed2556 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -285,7 +285,7 @@ void VclBox::setAllocation(const Size &rAllocation) // when it gets negative, it shrinks instead of expands and it becomes invisible if (nExtraSpace < 0) { - SAL_WARN("vcl.layout", "nExtraSpace went negative, setting to zero"); + SAL_WARN("vcl.layout", "nExtraSpace went negative, setting to zero for VclBox: " << GetHelpId()); nExtraSpace = 0; } } |