From 61758da3d70b231a6687fc23dba51ba627f80716 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 20 Dec 2006 03:19:22 +0000 Subject: [PATCH] * TreeView.cs: Make sure we factor in the vert scrollbar when calculating the horizontal scrollbar's maximum. svn path=/trunk/mcs/; revision=69797 --- mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 2 ++ mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 6ee42c4ce91..a599d9cd7ee 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -4,6 +4,8 @@ used to mean, we want to move the caret regardless of whether or not this break was soft (would we really have wanted the caret to not move with the break in the old context?) + * TreeView.cs: Make sure we factor in the vert scrollbar when + calculating the horizontal scrollbar's maximum. 2006-12-19 Andreia Gaita diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs index d89534ccbf8..29db223df1a 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs @@ -1373,7 +1373,7 @@ namespace System.Windows.Forms { } if (horz) { - hbar.SetValues (width + 1, ClientRectangle.Width); + hbar.SetValues (width + 1, ClientRectangle.Width - (vert ? SystemInformation.VerticalScrollBarWidth : 0)); /* hbar.LargeChange = ClientRectangle.Width; hbar.Maximum = width + 1; -- 2.11.4.GIT