Browse Source

Fixed SD2-922: RegEx window not restoring its size after been maximized

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1598 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
a06b1d7c39
  1. 4
      src/Main/Base/Project/Src/Gui/FormLocationHelper.cs
  2. 1
      src/Main/Base/Project/Src/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs

4
src/Main/Base/Project/Src/Gui/FormLocationHelper.cs

@ -28,7 +28,9 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -28,7 +28,9 @@ namespace ICSharpCode.SharpDevelop.Gui
}
form.Closing += delegate {
if (isResizable) {
PropertyService.Set(propertyName, form.Bounds);
if (form.WindowState == FormWindowState.Normal) {
PropertyService.Set(propertyName, form.Bounds);
}
} else {
PropertyService.Set(propertyName, form.Location);
}

1
src/Main/Base/Project/Src/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs

@ -328,7 +328,6 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -328,7 +328,6 @@ namespace ICSharpCode.SharpDevelop.Gui
if (e.Action == TabControlAction.Selected && e.TabPageIndex >= 0) {
IBaseViewContent secondaryViewContent = GetSubViewContent(e.TabPageIndex);
if (secondaryViewContent != null) {
secondaryViewContent.Deselected();
secondaryViewContent.SwitchedTo();
secondaryViewContent.Selected();
}

Loading…
Cancel
Save