[Mono-bugs] [Bug 80207][Nor] Changed - ListView ColumnHeader has wrong height when Width is -1 or -2
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jan 2 16:49:22 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=80207
--- shadow/80207 2007-01-02 15:51:34.000000000 -0500
+++ shadow/80207.tmp.10907 2007-01-02 16:49:22.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 80207
Product: Mono: Class Libraries
Version: 1.2
OS: Windows XP
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: Windows.Forms
AssignedTo: mkestner at ximian.com
ReportedBy: georgegiolfan at yahoo.com
QAContact: mono-bugs at ximian.com
@@ -105,6 +105,28 @@
------- Additional Comments From gert.driesen at pandora.be 2007-01-02 15:26 -------
Still noticed that column header is still one pixel off if Width is -
2. See attached repro.
------- Additional Comments From mkestner at ximian.com 2007-01-02 15:51 -------
revision 70379
+
+------- Additional Comments From georgegiolfan at yahoo.com 2007-01-02 16:49 -------
+Shorter version of the 18429 atachment.
+using System.Windows.Forms;
+class TestForm : Form {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+ public TestForm() {
+ ListView l = new ListView();
+ l.View = View.Details;
+ ColumnHeader c1 = new ColumnHeader();
+ ColumnHeader c2 = new ColumnHeader();
+ l.Columns.AddRange(new ColumnHeader[] { c1, c2 });
+ c1.Width = -2;
+ c2.Width = -1;
+ Controls.Add(l);
+ }
+
+}
+Changing text_padding to 4 seems to fix it, but I don't know why.
+Maybe the whole header height thing needs to be changed.
More information about the mono-bugs
mailing list