Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: viewer pane pops out to editor tab #4808

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

isabelizimm
Copy link
Contributor

@isabelizimm isabelizimm commented Sep 24, 2024

addreses #3714

what works

  • things in viewer pane can get populated via button in editor tab!
  • aforementioned editor tab resizes correctly

what doesn't work

  • disposing things properly when editor tab is closed
  • when you resize the viewer pane when something is in the editor tab, the content goes back into the viewer pane
  • content is still coupled to viewer pane

very inspired by #4364 🫶

token: CancellationToken
): Promise<void> {
this.renderContainer();
this.onSizeChanged((event: ISize) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just bounces back and forth between here and the PositronPreviewViewPane redraw, so the content will hop between Viewer and Editor pane depending on where you resize 😩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant