diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-02-06 14:39:56 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-02-08 09:30:16 +0000 |
commit | 1e23e26d48eabb829c39304a78fad26b10f76d7f (patch) | |
tree | ba58a8d8e21354d48eeeb24ce021a760898aadf5 /vcl | |
parent | 6f91ab6de9ce169ca489f4574b119e06ef6db9dc (diff) |
tdf#147740 fix disappearing icons in groupbar
Change-Id: Ia67b90d05bccbd4d2c2553109ea7372574ee21d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146584
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/PriorityMergedHBox.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/control/PriorityMergedHBox.cxx b/vcl/source/control/PriorityMergedHBox.cxx index 75a26daa52c1..65d51cce378c 100644 --- a/vcl/source/control/PriorityMergedHBox.cxx +++ b/vcl/source/control/PriorityMergedHBox.cxx @@ -155,6 +155,15 @@ Size PriorityMergedHBox::calculateRequisition() const accumulateMaxes(aChildSize, aSize); } + // find max height + for (vcl::Window* pChild = GetWindow(GetWindowType::FirstChild); pChild; + pChild = pChild->GetWindow(GetWindowType::Next)) + { + Size aChildSize = getLayoutRequisition(*pChild); + setPrimaryDimension(aChildSize, getPrimaryDimension(aSize)); + accumulateMaxes(aChildSize, aSize); + } + setPrimaryDimension(aSize, 200); return finalizeMaxes(aSize, nVisibleChildren); } |