[Mono-bugs] [Bug 357605] Wrong modifiers for Label.AutoSize property
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jan 31 23:33:58 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=357605
User jdpurcell2 at yahoo.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=357605#c1
--- Comment #1 from James Purcell <jdpurcell2 at yahoo.com> 2008-01-31 21:33:57 MST ---
The reason I noticed this was because AutoSizeMode wasn't being set to
GrowAndShrink. So this would be a good test:
#if NET_2_0
Form f = new Form();
Label l = new Label();
f.Controls.Add(l);
l.AutoSize = true;
l.Text = "test";
Size s = l.Size;
l.Size = s + new Size (100, 100);
Assert.AreEqual (s, l.Size, "A1");
f.Dispose();
#endif
Actually this might supposed to work in .NET 1.0 as well even though it doesn't
have AutoSizeMode, but I'm not going to bother with that.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list