Skip to content

Presentation preview during another pane's zoom moves the zoom with a stale tab #19303

Open

Description

@gtritchie

A pane that raises itself while another pane is zoomed takes over the zoom through the WindowEnsureVisibleEvent handler in PaneManager, which calls fullyMaximizeWindow(window, lastSelectedTab_) (PaneManager.java:546). lastSelectedTab_ is only current if the pane fired a named ActivatePaneEvent first, which WorkbenchPane.bringToFront() does only for panes constructed with a pane name and event bus. WorkbenchTabPanel passes the EnsureVisibleEvent up (WorkbenchTabPanel.java:284) before it selects the tab (:286), so the selection doesn't update it in time either.

Presentation2Pane uses the one-argument constructor (Presentation2Pane.java:65), and Presentation2.onPresentationPreview raises it through display_.activate() (Presentation2.java:140, Presentation2Pane.java:167). So previewing a Quarto presentation during a Console zoom should maximize the Presentation quadrant while Zoom Console stays checked, leaving the zoom state and the menu out of step. The old PresentationPane raises itself the same way (Presentation.java:182).

This is from reading the code; it has not been reproduced yet. It is not specific to a UI language.

Possibly affected the same way, not yet traced: panes in the Console's window that use the one-argument constructor (Find in Files, Markers, Background Jobs, etc.).

Possible fixes:

  • Give Presentation2Pane (and PresentationPane) PaneManager.PRESENTATIONS_PANE / PRESENTATION_PANE and the event bus, as Name a raised pane by its canonical name, not its title #19300 does for the other panes.
  • Have WorkbenchTabPanel report the raised WorkbenchTab to PaneManager (which maps it to a Tab through wbTabToTab_) before the window event, covering every pane without a per-pane name. Moving selectTab ahead of the upward event alone wouldn't do it, since TabLayoutPanel.selectTab returns early for an already-selected tab. The named ActivatePaneEvent would still be needed for activateTab's hidden-tabset handling.

Activity

  1. added theissue type on Oct 27, 2026
  2. gtritchie commented on Oct 27, 2026

    @gtritchie
    MemberAuthor

    Putting in 2026.12 milestone; this is a pre-existing issue so not urgent to get it in for current release.

  3. gtritchie commented on Nov 9, 2026

    @gtritchie
    MemberAuthor

    Moving to 2027.01, still lower priority than a bunch of other stuff.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions