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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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; _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
