[Mono-bugs] [Bug 80448][Min] New - ListView horizontal scroll issue in details view

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 3 20:41:46 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by georgegiolfan at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80448

--- shadow/80448	2007-01-03 20:41:46.000000000 -0500
+++ shadow/80448.tmp.8500	2007-01-03 20:41:46.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 80448
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ListView horizontal scroll issue in details view
+
+Description of Problem:
+When a ListView in details view is resized to a smaller width, the 
+horizontal scrollbar appears even if there is no need for it.
+
+Steps to reproduce the problem:
+Compile and run the following program.
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    public TestForm() {
+        ListView l = new ListView();
+        l.View = View.Details;
+        l.Columns.Add("");
+        l.Items.Add("");
+        Controls.Add(l);
+        l.Width *= 2;
+        l.Width /= 2;
+    }
+}
+Actual Results:
+The horizontal scrollbar.
+
+Expected Results:
+No scrollbar.
+
+How often does this happen? 
+Always (on the SVN version).
+
+Additional Information:
+I'm not sure I understand the layout logic of this implementation, but the 
+problem seems to be in LayoutDetails.
+I suggest changing
+layout_wd = Math.Max (header_control.Width, item_control.Width);
+to
+layout_wd = header_control.Width;


More information about the mono-bugs mailing list