Skip to content

Show All Panes after Zoom Sidebar leaves the left column collapsed #19201

Closed

Description

@gtritchie

Problem

After Zoom Sidebar, Show All Panes restores the sidebar and the right column but leaves the left column (Source and Console) collapsed to 0px wide and inert. The collapsed layout persists across a browser reload.

Steps to reproduce

With the sidebar visible on the left and the default four-pane layout:

  1. Focus the Posit Assistant tab in the sidebar.
  2. Run Zoom Sidebar (Ctrl+Alt+Shift+F10).
  3. Run Show All Panes (Ctrl+Shift+0).

Expected: all columns return to their widths from before the zoom.
Actual: Source and Console stay collapsed and inert. Widths of the pane elements, in px:

State Sidebar Source / Console TabSet1 / TabSet2
Before zoom 320 308 542
After Zoom Sidebar 1169 0 1
After Show All Panes 320 0 888
After reload 320 0 888

Dragging the column splitter open restores the layout.

Reproduced on RStudio Server built from main at f597467, and in 2026.10.0+233.

Activity

  1. added
    layout
    on Oct 20, 2026
  2. added theissue type on Oct 20, 2026
  3. self-assigned this
    on Oct 20, 2026
  4. gtritchie commented on Oct 22, 2026

    @gtritchie
    MemberAuthor

    A related case, found from code review while working on #19184 (not yet reproduced by hand):

    With the sidebar visible, Zoom Left Column collapses the sidebar along with the right column. Ending that zoom with End Zoom goes through PaneManager.restoreLayout(). For a column zoom (maximizedWindow_ is null) that runs restorePaneLayout() → restoreColumnLayout(), which never restores sidebarSizePriorToZoom_. It only resets the sidebar when it is zoom-wide (isZoomedWidth). So the zoom state is cleared, but the sidebar stays at its collapsed width.

    As of #19184, a pane that raises itself in a column hidden by a column zoom (e.g. a new plot during Zoom Left Column) also ends the zoom through restoreLayout(), so it reaches the same gap.

    There's a separate timing edge in that path as well: if the pane raises itself during the 300ms zoom animation, it can still measure 20px or wider. The check then does nothing, and the animation finishes collapsing the column.

  5. gtritchie commented on Oct 22, 2026

    @gtritchie
    MemberAuthor

    Update from review of #19231:

    • The gap covers more than the sidebar. restoreColumnLayout() doesn't restore widgetSizePriorToZoom_ either. It passes right_'s current width (0 after Zoom Left Column) to getValidColumnWidth(), and with one widget the min and max thresholds come out equal: 0.75 × panel width with two columns. So End Zoom, or a pane raise ending the zoom, puts the right column at that width whatever it was before. Extra source columns get their pre-zoom widths clamped by getValidColumnWidths(). Re-running the zoom command restores the snapshot instead (the unzoom branch of zoomColumn()). splitter_aria.test.ts ("column splitter value follows column zoom") asserts the current End Zoom behavior: "restores the default column widths, not the pre-zoom ones".
    • What Reopen a column dragged shut when a pane is shown #19231 changes here. Once a zoom ends this way, a Show command or pane raise for the sidebar now reopens it, to at least its 175px minimum. End Zoom on its own still leaves the sidebar at 0px.
    • The timing edge above is fixed in Reopen a column dragged shut when a pane is shown #19231. The check now reads target widths, so a pane shown during the 300ms animation ends the zoom.
  6. gtritchie commented on Oct 27, 2026

    @gtritchie
    MemberAuthor

    Pre-exisiting, moving to next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buglayout

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions