[Mono-bugs] [Bug 72314][Wis] New - ListView is not being correctly resized when using anchors
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 7 Feb 2005 19:14:04 -0500 (EST)
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 rogerio.araujo@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=72314
--- shadow/72314 2005-02-07 19:08:02.000000000 -0500
+++ shadow/72314.tmp.28645 2005-02-07 19:14:04.000000000 -0500
@@ -0,0 +1,69 @@
+Bug#: 72314
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: rogerio.araujo@gmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ListView is not being correctly resized when using anchors
+
+When i add a ListView to the form and then i maximize or restore the form
+to it's original size the ListView size is not being incorrectly updated.
+
+Steps to reproduce the problem:
+1. Add a ListView to the form.
+2. Set Left, Right and Top anchors for this ListView
+3. Maximize the form.
+
+Actual Results:
+The ListView size is not being correctly updated.
+
+Expected Results:
+The ListView fully resized.
+
+How often does this happen?
+Ever.
+
+Additional Information:
+I must click in a item in the ListView to get it correctly resized.
+
+Please, create a form an add this code the form and the run the application
+and maximize the form:
+
+ListView lvwRemoteFileSystem = new ListView();
+lvwRemoteFileSystem.Anchor =
+((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top
+| System.Windows.Forms.AnchorStyles.Right))));
+lvwRemoteFileSystem.Top = 80;
+lvwRemoteFileSystem.Left = 300;
+lvwRemoteFileSystem.Width = 280;
+lvwRemoteFileSystem.Height = 200;
+lvwRemoteFileSystem.View = System.Windows.Forms.View.Details;
+lvwRemoteFileSystem.Font = new Font(FontFamily.GenericMonospace, 12);
+lvwRemoteFileSystem.SelectedIndexChanged += new
+EventHandler(this.lvwRemoteFileSystem_SelectedIndexChanged);
+lvwRemoteFileSystem.FullRowSelect = true;
+
+clhHeader = new ColumnHeader();
+clhHeader.Text = "Name";
+clhHeader.Width = 200;
+lvwRemoteFileSystem.Columns.Add(clhHeader);
+
+clhHeader = new ColumnHeader();
+clhHeader.Text = "Size";
+lvwRemoteFileSystem.Columns.Add(clhHeader);
+
+clhHeader = new ColumnHeader();
+clhHeader.Text = "Permissions";
+lvwRemoteFileSystem.Columns.Add(clhHeader);
+
+Controls.Add(lvwRemoteFileSystem);