Skip to content

Commit

Permalink
Merge pull request #124 from manics/resizesession
Browse files Browse the repository at this point in the history
Resize desktop to window, instead of scaling
  • Loading branch information
yuvipanda authored Jul 19, 2024
2 parents 5fa250b + c9795ea commit 30e67eb
Show file tree
Hide file tree
Showing 2 changed files 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
Binary file modified tests/reference/desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 30e67eb

Please sign in to comment.