Coder Social home page Coder Social logo

Comments (4)

lhhunghimself avatar lhhunghimself commented on July 20, 2024

The total canvas size shown by the browser is currently fixed to the size that was first encountered when the browser connects. This is something that we need to fix with the noVNC package - probably an extra button to allow the user to resize everything.

The small windows can be fixed by specifying minimum sizes but that should probably depend on the canvas size. With tabbed and scrolling windows - I think this will be less of a problem but the long term fix is to link minimum windows sizes to the canvas size.

from biodepot-workflow-builder.

pilocchii avatar pilocchii commented on July 20, 2024

It seems that when I first launch bwb the canvas fills the browser window's available space (desired behavior), and subsequent launches show the background (VNC?) components, like the reboot and shutdown buttons (undesirable). This one sounds tricky based on our discussion!

Is sizing a GUI container based on its children components's sizes something that fits quicktime's paradigm?

from biodepot-workflow-builder.

lhhunghimself avatar lhhunghimself commented on July 20, 2024

TLDR - enter localhost:6080 as URL not localhost:6080/vnc_auto.html to connect to Bwb container if you want a resize

The noVNC module does a resize the first time the browser connects by doing a redirect and then redirects to localhost:6080/vnc_auto.html (assuming that localhost is the ip you are using and 6080 is the port you chose in the docker run command)
Your browser will keep this localhost:6080/vnc_auto.html in the search/url bar of your browser when you quit the Bwb container. If you use this URL to connect next time - no resizing will be done. It will either use the last size or the default size which is something very small. To trigger a resize you need to use enter localhost:6080 into the search bar (or bookmark it...)

We really should fix this at some time but it's not our code so I would have to figure out exactly what the code is doing at startup and how best to fix it.

I will add it to the FAQs in the docs until we fix it. This, the lack of a cut and paste into the browser, and the mapping of keystrokes so that ^W doesn't close the window in Chrome are the most annoying things that need to be fixed with the noVNC module.

from biodepot-workflow-builder.

lhhunghimself avatar lhhunghimself commented on July 20, 2024

Looking at the code - it checks the initial url - if it does not have a route defined it will call a javascript method to get the window size and then redirect to another url which will then be handled by a python script which will send the size to the framebuffer. There appears to be no way to resize the framebuffer afterwards

So - it could be that you have a pop-up blocker on that is blocking the javascript method. If that is the case it will size the window to the default size

Alternatively you can pass the redirect url directly with the size
i.e.

localhost:6080/redirect.html?width=1707&height=872 

or whatever width and height you want.

from biodepot-workflow-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.