2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Mon, 25 May 2009 19:18:53 +0000 (19:18 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Mon, 25 May 2009 19:18:53 +0000 (19:18 -0000)
* 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

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewDialog.cs

index 60852fa53f3788a80fe9f17d642c1600a1beb81f..3742f007109402763571b8fd3ec2903497a9fdfe 100644 (file)
@@ -1,3 +1,10 @@
+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
index 813fddc5ac3ed3721798dede454f32caca1b721e..e16e0606b9d913721973a4b64d89d5db3de27743 100644 (file)
@@ -64,7 +64,8 @@ namespace System.Windows.Forms {
 
                        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 ();
                }