kanaka/noVNC — Issue #111: Add config "scale=yes|no|fit" option
Author: mightypenguin
Created: 2011-12-08 22:18:56+00:00
State: open

It would be nice if there was an automatic scaling option.
For Ipad/Iphone this would be especially nice since they have limited screen size.

Any tips on how I'd start implementing this?

I would think we'd want this to default to yes (maintaining aspect ratio), fit would be full screen stretch.

I noticed a "scale" option in display.js but adjusting it didn't seem to do anything.

I was initially thinking of using the canvas 2d context's scale function:
https://developer.mozilla.org/samples/canvas-tutorial/5_4_canvas_scale.html

But it seems you're drawing method might not be compatible with this.