Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRizvanKuliev <55974620+RizvanKuliev@users.noreply.github.com>2019-11-27 21:09:19 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-11-27 21:09:19 +0300
commita73e7b8af24823bedcef424844b501b609e0dd37 (patch)
tree3d98c30948689eeef48e436c64ea8eab8354386d /mcs/class/System.Windows.Forms
parent9954579c2a348d0be86d3276fa3f772cde479ac6 (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.cs4
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