Skip to content

Commit

Permalink
Try resizeSession instead of scaleViewport
Browse files Browse the repository at this point in the history
  • Loading branch information
manics authored Jul 15, 2024
1 parent f3a6b1b commit acd6436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ function connect() {
rfb.addEventListener("connect", connectedToServer);
rfb.addEventListener("disconnect", disconnectedFromServer);

// Scale our viewport so the user doesn't have to scroll
rfb.scaleViewport = true;
// Resize our viewport so the user doesn't have to scroll
rfb.resizeSession = true;

// Use a CSS variable to set background color
rfb.background = "var(--jupyter-medium-dark-grey)";
Expand Down

0 comments on commit acd6436

Please sign in to comment.