* Form.cs: We need to use the ActiveMenu when calculating menu
height.
+ - Fix nullref when the window manager hasn't been created yet.
+ * Control.cs: Fix nullref when we try to bring a control to the
+ front that has no parent.
* MdiWindowManager.cs: Use the MaximizedMenu for calculating
height.
- Add a dummy item to the maximized menu so it always has the
correct height. Otherwise when there are no menus we don't get our
icon and buttons.
+
2006-03-10 Jackson Harper <jackson@ximian.com>
if (parent.child_controls.Contains(this)) {
parent.child_controls.SetChildIndex(this, 0);
}
- } else {
+ } else if (parent != null) {
if (parent.child_controls.impl_list != null) {
Control last_impl = (Control) parent.child_controls.impl_list [parent.child_controls.impl_list.Count - 1];
XplatUI.SetZOrder (this.window.Handle, last_impl.Handle, false, false);
Form child = ActiveMdiChild;
if (child == null)
return null;
- if (child.WindowManager.GetWindowState () != FormWindowState.Maximized)
+ if (child.WindowManager == null || child.window_state != FormWindowState.Maximized)
return null;
return (MdiWindowManager) child.WindowManager;
}