Author: andreia
Date: 2007-10-31 14:30:43 -0500 (Wed, 31 Oct 2007)
New Revision: 88605

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs
Log:
* WebBrowserBase.cs: Only call resize on gluezilla when it is active

2007-10-31  Andreia Gaita <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-31 19:17:34 UTC (rev 88604)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-31 19:30:43 UTC (rev 88605)
@@ -1,3 +1,7 @@
+2007-10-31  Andreia Gaita <[EMAIL PROTECTED]>
+
+       * WebBrowserBase.cs: Only call resize on gluezilla when it is active
+
 2007-10-31  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic 
number.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs    
    2007-10-31 19:17:34 UTC (rev 88604)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs    
    2007-10-31 19:30:43 UTC (rev 88605)
@@ -283,7 +283,8 @@
                protected override void SetBoundsCore (int x, int y, int width, 
int height, BoundsSpecified specified)
                {
                        base.SetBoundsCore (x, y, width, height, specified);
-                       this.webHost.Resize (width, height);
+                       if (state == State.Active) 
+                               this.webHost.Resize (width, height);
                }
                #endregion
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to