[Mono-bugs] [Bug 397943] New: Control.SetBounds ignores BoundsSpecified
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Jun 6 09:36:13 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=397943
Summary: Control.SetBounds ignores BoundsSpecified
Product: Mono: Class Libraries
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: novell at vokabeln.de
QAContact: mono-bugs at lists.ximian.com
Found By: Development
Description of Problem:
If I use Control.SetBounds with BoundsSpecified, MONO 1.9.1 always sets all the
bounds (instead of setting just the specified bounds), i.e. MONO completely
ignores the BoundsSpecified information.
Steps to reproduce the problem:
1. Create a Windows Forms application, adding the following code to Form1:
private void Form1_Load(object sender, EventArgs e)
{
Control myControl = new Control();
myControl.SetBounds(10, 20, 30, 40);
myControl.SetBounds(50, 60, 0, 0, BoundsSpecified.Location);
MessageBox.Show(myControl.Bounds.ToString()) ;
}
2. Run the application under .NET and MONO
Actual Results:
NET shows the message box {X=50;Y=60;Width=30;Height=40}
MONO shows the message box {X=50;Y=60;Width=0;Height=0}
Expected Results:
MONO should produce {X=50;Y=60;Width=30;Height=40} as well because
"BoundsSpecified.Location" means that only the location variables (i.e. X/Y or
Left/Top) should be altered, not the size variables (Width/Height).
How often does this happen?
Always.
--
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