[Mono-bugs] [Bug 503064] New: (Open/Save) FileDialog size grows upon sequential show
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue May 12 08:55:08 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=503064
Summary: (Open/Save) FileDialog size grows upon sequential show
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: alexander.shulgin at yessoftware.com
QAContact: mono-bugs at lists.ximian.com
Found By: Community User
In a sample application, if we show and close OpenFileDialog (or
SaveFileDialog) many times, the initial size of the dialog grows with each
show.
Sample code:
using System;
using System.Windows.Forms;
namespace FileDialogSize
{
class MainForm : Form
{
public MainForm()
{
button1 = new Button();
button1.Text = "Click me";
button1.Dock = DockStyle.Fill;
button1.Click += delegate {
//SaveFileDialog dlg = new SaveFileDialog();
OpenFileDialog dlg = new OpenFileDialog();
dlg.ShowDialog(this);
};
this.Controls.Add(button1);
}
private Button button1;
};
public class Program
{
public static void Main()
{
Application.Run(new MainForm());
}
}
}
Steps to reproduce:
1. Compile and run the above test code.
2. Click on the button.
3. Close the opened dialog by pressing Esc key.
4. Repeat 2,3 several times.
Actual results:
With each show the size of file dialog is growing in height substantially.
Expected results:
The size of file dialog shouldn't change between the shows.
--
Configure bugmail: http://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