Skip to content

Commit

Permalink
feat(fullscreen): auto extend size of new output view cell
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Apr 19, 2024
1 parent ce8287c commit 1f27c17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ const plugin: JupyterFrontEndPlugin<void> = {
app,
kernelsRegistry,
commsRegistry,
init
init,
updateOutputs
};

(window as any).trameJupyter = namespace;
Expand Down
6 changes: 4 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export function updateOutputs() {
const full = document.querySelectorAll<HTMLElement>(
'.jp-LinkedOutputView iframe[id^=trame]'
'.jp-LinkedOutputView iframe[id*=trame__template]'
);
const all = document.querySelectorAll<HTMLElement>(
'iframe[id*=trame__template]'
);
const all = document.querySelectorAll<HTMLElement>('iframe[id^=trame]');
const visibleInFullScreen: Record<string, boolean> = {};
const moveToFullScreen: Array<HTMLElement> = [];

Expand Down

0 comments on commit 1f27c17

Please sign in to comment.