Skip to content

Commit

Permalink
Fix viewer pane as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nstrayer committed Apr 2, 2024
1 parent 41a994b commit 4cb1412
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 4cb1412

Please sign in to comment.