[Libreoffice-commits] core.git: svtools/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 21 08:57:55 UTC 2020
svtools/source/control/valueset.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 9394ad31fb9c325001c97702feda317d61f1cbbb
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jan 20 20:32:49 2020 +0000
Commit: Caolán McNamara <caolanm at 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 <caolanm at 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();
More information about the Libreoffice-commits
mailing list