From 4cb14122e3ba6e3a7110aeb9479a99520fa2343e Mon Sep 17 00:00:00 2001 From: Nick Strayer Date: Tue, 2 Apr 2024 13:15:06 -0400 Subject: [PATCH] Fix viewer pane as well --- .../contrib/positronPreview/browser/positronPreviewView.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vs/workbench/contrib/positronPreview/browser/positronPreviewView.tsx b/src/vs/workbench/contrib/positronPreview/browser/positronPreviewView.tsx index b140ab28c9e..161607c864b 100644 --- a/src/vs/workbench/contrib/positronPreview/browser/positronPreviewView.tsx +++ b/src/vs/workbench/contrib/positronPreview/browser/positronPreviewView.tsx @@ -85,6 +85,12 @@ export class PositronPreviewViewPane extends ViewPane implements IReactComponent @IWorkbenchLayoutService private readonly layoutService: IWorkbenchLayoutService, @IPositronPreviewService private readonly positronPreviewService: IPositronPreviewService ) { + // Override minimum size option if it isn't already somehow set. There doesn't seem to be a + // way to set this in any sort of configuration hence the need to override it here. If this + // isn't set, then the help pane will occlude parts of the editor when it is resized to be + // very small. + options = { ...options, minimumBodySize: 0 }; + super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService); this._register(this.onDidChangeBodyVisibility(() => this.onDidChangeVisibility(this.isBodyVisible()))); this._positronPreviewContainer = DOM.$('.positron-preview-container');