From cfe46abeaa2f3e273f2529c001f164f7de2e3415 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 22 Sep 2020 10:58:22 -0700 Subject: [PATCH] Fixed tiny tabbed view issue from file recovery --- IDE/src/IDEApp.bf | 8 +++++--- IDE/src/ui/SourceViewPanel.bf | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index 84bfa0f4..b18bc180 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -2281,6 +2281,11 @@ namespace IDE mMainFrame.RehupSize(); ShowStartupFile(); + +#if !CLI + if (mMainWindow != null) + mFileRecovery.CheckWorkspace(); +#endif } void CloseWorkspaceAndSetupNew() @@ -2602,9 +2607,6 @@ namespace IDE #if !CLI if (mBfResolveCompiler != null) mBfResolveCompiler.QueueSetWorkspaceOptions(null, 0); - - if (mMainWindow != null) - mFileRecovery.CheckWorkspace(); #endif String relaunchCmd = scope .(); diff --git a/IDE/src/ui/SourceViewPanel.bf b/IDE/src/ui/SourceViewPanel.bf index 69758307..e694e9e9 100644 --- a/IDE/src/ui/SourceViewPanel.bf +++ b/IDE/src/ui/SourceViewPanel.bf @@ -6466,6 +6466,10 @@ namespace IDE.ui mNavigationBar.mVisible = false; } + // Always leave enough to read the first 3 lines + if (mHeight < GS!(88)) + mHeight = GS!(88); + float splitterHeight = GS!(3); float splitTopHeight = 0;