diff options
author | RizvanKuliev <55974620+RizvanKuliev@users.noreply.github.com> | 2019-11-27 21:09:19 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-11-27 21:09:19 +0300 |
commit | a73e7b8af24823bedcef424844b501b609e0dd37 (patch) | |
tree | 3d98c30948689eeef48e436c64ea8eab8354386d /mcs/class/System.Windows.Forms | |
parent | 9954579c2a348d0be86d3276fa3f772cde479ac6 (diff) |
[WinForms] Fix Recalculate in ScrollableControl (#17163)
Diffstat (limited to 'mcs/class/System.Windows.Forms')
-rw-r--r-- | mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollableControl.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollableControl.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollableControl.cs index 8ead086df39..ac5f814a71b 100644 --- a/mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollableControl.cs +++ b/mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollableControl.cs @@ -837,10 +837,10 @@ namespace System.Windows.Forms { */ if (!vscrollbar.Visible) { - vscrollbar.Value = 0; + vscrollbar.Value = vscrollbar.Minimum; } if (!hscrollbar.Visible) { - hscrollbar.Value = 0; + hscrollbar.Value = hscrollbar.Minimum; } /* Manually setting the size of the thumb should be done before |