[Mono-bugs] [Bug 81118][Nor] Changed - [PATCH] Layout not performed when a child's Visible property changes

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Mar 26 13:23:31 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by monkey at jpobst.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81118

--- shadow/81118	2007-03-19 08:22:09.000000000 -0500
+++ shadow/81118.tmp.23815	2007-03-26 12:23:31.000000000 -0500
@@ -53,6 +53,57 @@
 is the layout call happening in set_Visible or in something on the
 other end of the native layer on .net?  i.e. in set_Visible, or in
 WmShowWindow/OnVisibleChanged?
 
 ------- Additional Comments From georgegiolfan at yahoo.com  2007-03-19 08:22 -------
 Seems to be in set_Visible.
+
+------- Additional Comments From monkey at jpobst.com  2007-03-26 12:23 -------
+MS stacktrace of when the control's OnLayout is getting called:
+
+   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
+   at System.Environment.get_StackTrace()
+   at Test.MyForm.OnLayout(LayoutEventArgs levent)
+   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
+   at
+System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement
+affectedElement, String affectedProperty)
+   at
+System.Windows.Forms.Layout.LayoutTransaction.DoLayout(IArrangedElement
+elementToLayout, IArrangedElement elementCausingLayout, String property)
+   at System.Windows.Forms.Control.OnResize(EventArgs e)
+   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
+   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y,
+Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
+   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y,
+Int32 width, Int32 height)
+   at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y,
+Int32 width, Int32 height, BoundsSpecified specified)
+   at
+System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle
+bounds, BoundsSpecified specified)
+   at
+System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(IArrangedElement
+element, Rectangle newElementBounds, Boolean measureOnly, Size&
+preferredSize, Rectangle& remainingBounds)
+   at
+System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(IArrangedElement
+container, Boolean measureOnly)
+   at
+System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement
+container, Boolean measureOnly, Size& preferredSize)
+   at
+System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement
+container, LayoutEventArgs args)
+   at System.Windows.Forms.Layout.LayoutEngine.Layout(Object
+container, LayoutEventArgs layoutEventArgs)
+   at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
+   at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs
+levent)
+   at System.Windows.Forms.Form.OnLayout(LayoutEventArgs levent)
+   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
+   at System.Windows.Forms.Control.PerformLayout()
+   at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
+   at System.Windows.Forms.Layout.LayoutTransaction.Dispose()
+   at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
+   at System.Windows.Forms.Control.set_Visible(Boolean value)
+   at Test.Main()


More information about the mono-bugs mailing list