* PrintPreviewDialog.cs: Don't use Dock.Fill for the
PrintPreviewControl, since it will be hidden in the top by our
toolbar. Use manual location and anchoring instead.
Fixes #474889.
svn path=/trunk/mcs/; revision=134720
+2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * PrintPreviewDialog.cs: Don't use Dock.Fill for the
+ PrintPreviewControl, since it will be hidden in the top by our
+ toolbar. Use manual location and anchoring instead.
+ Fixes #474889.
+
2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* FileDialog.cs: When saving the size of the dialog, use the
print_preview = new PrintPreviewControl();
print_preview.Location = new Point (0, toolbar.Location.Y + toolbar.Size.Height);
- print_preview.Dock = DockStyle.Fill;
+ print_preview.Size = new Size (ClientSize.Width, ClientSize.Height - toolbar.Bottom);
+ print_preview.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
Controls.Add (print_preview);
print_preview.Show ();
}