vcl/source/window/layout.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 6af7691518f24835d600c692bff1dcd66f5e0ced Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Wed May 5 18:48:35 2021 +0300 Commit: Gülşah Köse <gulsah.k...@collabora.com> CommitDate: Thu May 6 07:18:18 2021 +0200 tdf#141424 Include the margin sizes while calculating width of window. Follow up development f61fcf6fe6b9f54dd57ca5d868b1b0436e9cec61 First one fixed only horizontal panes. Apply the same fix to vertical panes (eg: sidebar->gallery) Change-Id: I7e5e1bb7bf559741dd265a8bbc6f845a2f31efde Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115151 Tested-by: Jenkins Reviewed-by: Gülşah Köse <gulsah.k...@collabora.com> diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 0ef015140b93..7ee7665e0b8e 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2652,7 +2652,7 @@ void VclVPaned::setAllocation(const Size& rAllocation) if (bInitialAllocation) nFirstHeight = getLayoutRequisition(*pChild).Height(); else - nFirstHeight = pChild->GetSizePixel().Height(); + nFirstHeight = pChild->GetSizePixel().Height() + pChild->get_margin_top() + pChild->get_margin_bottom(); bFirstCanResize = pChild->get_expand(); } else if (nElement == 2) @@ -2660,7 +2660,7 @@ void VclVPaned::setAllocation(const Size& rAllocation) if (bInitialAllocation) nSecondHeight = getLayoutRequisition(*pChild).Height(); else - nSecondHeight = pChild->GetSizePixel().Height(); + nSecondHeight = pChild->GetSizePixel().Height() + pChild->get_margin_top() + pChild->get_margin_bottom(); bSecondCanResize = pChild->get_expand(); } ++nElement; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits