roerohan / react-vnc

A React Component to connect to a websockified VNC client using noVNC.
https://roerohan.github.io/react-vnc/
MIT License
88 stars 21 forks source link

With scaleviewport set to true, vnc screen (sometimes) becomes empty, and needs window scale change to be visible #44

Open JVisi opened 1 year ago

JVisi commented 1 year ago

Are you certain it's a bug?

Are you sure this is not an issue in noVNC?

Is there an existing issue for this?

Issue description

I ran into this issue, while I was developing an application that contains tabs. The vnc_screen works fine, so as the scaleviewport option. However when I changed tabs and then went back, the vnc_screen was nowhere. When I opened the devtools it reappeared.

After this I realized that setting scaleviewport attribute, it sometimes works like this. Other times it's completely normal. If the screen resolution somehow changes, for example putting the app in fullscreen mode, the vnc screen reappears.

Can I work around this?

Dynamically setting the size of the vnc_screen does not seem to solve the problem

roerohan commented 1 year ago

@JVisi

I wasn't able to reproduce this, could you help me by listing some steps that I should follow for reliable reproduction?