Fix a lot of issues related to resizable windows
@@ -168,16 +168,22 @@ class EditorSplitViewController: SplitViewController {
}
} else {
+ if EditorSplitViewController.shouldShowConsoleAtBottom {
+ arrangement = .vertical
+ }
+
+ if firstChild != editor || secondChild != console {
+
for view in view.subviews {
view.removeFromSuperview()
}
- viewDidLoad()
- super.viewDidAppear(false)
+ super.viewDidLoad()
+ super.viewDidAppear(true)
if EditorSplitViewController.shouldShowConsoleAtBottom {
arrangement = .vertical
- } else {
+ } else if arrangement != .horizontal {
arrangement = .horizontal
}
@@ -186,3 +192,4 @@ class EditorSplitViewController: SplitViewController {
}
}
}
+}
