diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-04-27 17:40:20 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-04-27 22:36:06 +0200 |
commit | 8de60b9049f07d8a958d0e28759dca247c4d5044 (patch) | |
tree | f2e5b95a627a10f3e8539e10d9a7c5f7e966ff81 /starmath | |
parent | 61a4b90dcdb953dd21a22a2f291ffd6be399ddd8 (diff) |
tdf#148819: let the scroller know the custom widget's line size
Change-Id: Ie30cd1db182aad5fbbf7e89498bd0ae9ce98c0f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133518
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 7f1b86120ad0..ed67baa9260f 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -500,6 +500,7 @@ void SmElementsControl::LayoutOrPaintContents(vcl::RenderContext& rContext, bool mxScroll->hadjustment_set_upper(nTotalControlWidth); mxScroll->hadjustment_set_page_size(nControlWidth); mxScroll->hadjustment_set_page_increment(nControlWidth); + mxScroll->hadjustment_set_step_increment(boxX); mxScroll->set_hpolicy(VclPolicyType::ALWAYS); } else @@ -516,6 +517,7 @@ void SmElementsControl::LayoutOrPaintContents(vcl::RenderContext& rContext, bool mxScroll->vadjustment_set_upper(nTotalControlHeight); mxScroll->vadjustment_set_page_size(nControlHeight); mxScroll->vadjustment_set_page_increment(nControlHeight); + mxScroll->vadjustment_set_step_increment(boxY); mxScroll->set_vpolicy(VclPolicyType::ALWAYS); } else |