-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Support iframe
based editors to reparent into floating windows
#195715
Comments
Can I work on this one? My interest is in the notebook editor. Is it possible to use DOM appendChild to move the iframe from one window to another? Maybe |
@bpasero any of these 'help wanted' or no? https://github.com/microsoft/vscode/issues?q=is%3Aopen+label%3Aworkbench-auxwindow |
This issue is hard to find as it doesn't contain the text of the error message, so I'm adding that now:
Also, an explicit list of windows that are affected would help with searching, e.g.
|
@r3m0t thanks for offering help. Unfortunately we can't move/reparent iframe, it is always a re-create if we are moving the notebook editor to aux window. In addition to the challenge with iframe, we have a borrow-editor concept for notebook which needs to tweaked to get this working. I have a draft which I can send a PR for soon. |
I think thats fine given we plan on actually resolving this issue this month. |
Works now, minus bugs and limitations (dirty non-text based custom editors without backup cannot open in floating windows). |
With floating windows, users have the desire to move editors out of the main window into the child window. Some of our editors use an absolute positioned
iframe
element that is resized and moved to fit into the editor area it belongs to. This will not work anymore as soon as the editor moves out of the window.I already made a pass and configured currently unsupported editors with the new
AuxWindowUnsupported
capability.This impacts custom editors as well as notebooks.
Steps to move an editor out to a floating window:
AuxWindowUnsupported
capability for the editor of choice//cc @Tyriar
The text was updated successfully, but these errors were encountered: