Bug 4642 - Resize support for the HTML5 Client
: Resize support for the HTML5 Client
: ThinLinc
Web Access
: trunk
: PC Unknown
: P2 Enhancement
: 4.1.1
Assigned To:
: 4648
  Show dependency treegraph
Reported: 2013-05-13 12:43 by
Modified: 2013-10-28 09:41 (History)
Acceptance Criteria:

Implements the resize support functionality (4.58 KB, patch)
2013-06-20 15:12, Samuel Mannehed
fixes some errors in the logic from the first patch (3.52 KB, patch)
2013-06-25 13:18, Samuel Mannehed


You need to log in before you can comment on or make changes to this bug.

Description From cendio 2013-05-13 12:43:39
Currently, the HTML5 client will adapt its canvas size to the current server
side size of the session. Newly created sessions will have a size determined by

This is different from how the native client works:

1) It will resize the remote session to the preferred size set by the client

2) If "Resize remote session to the local window" is activated, it will
dynamically resize the remote session when the size of the local window is

We should implement support for both these features in the HTML5 client.
------- Comment #1 From cendio 2013-05-16 16:59:14 -------
> 1) It will resize the remote session to the preferred size set by the client
> side. 

Initial size issue moved to bug 4648.
------- Comment #2 From cendio 2013-05-28 09:16:22 -------
There is a pullrequest upstream for auto scaling feature, it does not fullfill
requirements but it could be polished:

------- Comment #3 From cendio 2013-06-20 15:12:06 -------
Created an attachment (id=478) [details]
Implements the resize support functionality

Fixed in the attached resizesupport.patch
Made a pull request to the noVNC project on github:
------- Comment #4 From cendio 2013-06-25 13:18:43 -------
Created an attachment (id=479) [details]
fixes some errors in the logic from the first patch

I fixed some errors in the logic and some indentation from the first patch.
Also pushed into the same pull request on the noVNC project.
------- Comment #5 From cendio 2013-07-01 14:17:42 -------
Fixed in revision 27593.
------- Comment #6 From cendio 2013-07-02 15:28:38 -------
Updated in revision 27600.

Note that my commit-message in revision 27593 is wrong: I wrote "Fixes bug
4648" while it actually fixes this bug, 4642.
------- Comment #7 From cendio 2013-09-06 11:24:56 -------
There is a problem when trying to resize the viewport on mobile devices,
------- Comment #8 From cendio 2013-09-12 15:17:19 -------
Viewport problem fixed in 27874.
------- Comment #9 From cendio 2013-10-21 13:55:24 -------
There is still a slight problem when resizing the session on an iPad:

1) Start a session in landscape mode
2) Rotate screen to portrait, and then back to landscape again

The new landscape session appears to have the correct size, but incorrect
alignment - the top of the session is obscured slightly by the top NoVNC bar,
and there is a few pixels of blank space at the bottom of the browser.

Re-opening for discussion.
------- Comment #10 From cendio 2013-10-24 13:03:14 -------
The alignment problem in Safari has nothing to do with this bug, it seems like
iOS 7 has introduced a new bug/behavior which is the cause of the alignment
problem. Opened bug 4868 for that.
------- Comment #11 From cendio 2013-10-28 09:41:42 -------
A new bug has been opened for the Safari bug, so closing.