Skip to content

PDF export from split view keeps the interactive pane width #328

Description

@PathGao

Reproduction

  1. Open a Markdown document in split view.
  2. Export it with the native Export as PDF command.
  3. Compare the resulting PDF with the same document exported from preview-only view.

Actual behavior

The viewer pane retains its inline interactive flex ratio while print CSS is active. The pane therefore occupies only the split-view fraction of the page even though the print rules set its width to 100%. Long documents become unnecessarily narrow and can create avoidable heading orphans.

Expected behavior

PDF export should use the full printable page width regardless of the interactive split ratio.

Scope

A minimal print-only rule can clear the viewer pane's flex value. It does not change the renderer, print dialog, persisted preview width, or normal split-view layout.

Validation

A macOS release bundle exported a 20-section fixture from split view to a three-page A4 PDF. The corrected layout used the full printable width and kept every heading with its following paragraph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions