svtools/source/control/valueset.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 9394ad31fb9c325001c97702feda317d61f1cbbb Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Jan 20 20:32:49 2020 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Jan 21 09:57:23 2020 +0100 scrollbar adjustment wrong if we clear and refill a SvtValueSet like in the gallery Change-Id: Ic89579f2d2f7e322757d42b36d57126646cad7bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87106 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index b9ad1d2e16cf..414f3ae6a2ad 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -2687,6 +2687,12 @@ void SvtValueSet::Clear() mnSelItemId = 0; mbNoSelection = true; + // reset scrolled window state to initial value + // so it will get configured to the right adjustment + WinBits nStyle = GetStyle(); + if (mxScrolledWindow && (nStyle & WB_VSCROLL)) + mxScrolledWindow->set_vpolicy(VclPolicyType::NEVER); + mbFormat = true; if ( IsReallyVisible() && IsUpdateMode() ) Invalidate(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits