Author: jackson
Date: 2005-04-25 16:42:07 -0400 (Mon, 25 Apr 2005)
New Revision: 43562

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
Log:
        * TreeView.cs: Use the horizontal scrollbars height not width when
        determining how much of the client area is available.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-04-25 20:16:18 UTC (rev 43561)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-04-25 20:42:07 UTC (rev 43562)
@@ -1,5 +1,10 @@
 2005-04-25  Jackson Harper  <[EMAIL PROTECTED]>
 
+       * TreeView.cs: Use the horizontal scrollbars height not width when
+       determining how much of the client area is available.
+
+2005-04-25  Jackson Harper  <[EMAIL PROTECTED]>
+
        * Control.cs: Double buffering is handled differently now. As per
        the spec, the extra buffer is created in the WM_PAINT message and
        passed down to the control's drawing code.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs      
2005-04-25 20:16:18 UTC (rev 43561)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs      
2005-04-25 20:42:07 UTC (rev 43562)
@@ -749,8 +749,8 @@
                        if (add_vscroll)
                                add_hscroll = max_node_width > 
ClientRectangle.Width - ThemeEngine.Current.VScrollBarDefaultSize.Width;
                        if (add_hscroll)
-                               add_vscroll = (open_node_count * ItemHeight) > 
ClientRectangle.Height - ThemeEngine.Current.HScrollBarDefaultSize.Width;
-
+                               add_vscroll = (open_node_count * ItemHeight) > 
ClientRectangle.Height - ThemeEngine.Current.HScrollBarDefaultSize.Height;
+                        
                        if (add_hscroll) {
                                AddHorizontalScrollBar ();
                        } else if (hbar != null) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to