I want to resize the screen which I am controlling to the available screen of the browser without showing any scrollbars . I have done this by resizing the html elements but by doing this the position and movement of the curser also changes on the remote end . I am using the sample App of guacamole
var display = document.getElementById("display");
// Instantiate client, using an HTTP tunnel for communications.
var guac = new Guacamole.Client(
new Guacamole.HTTPTunnel("tunnel")
);
// Add client to display div
var dis = guac.getDisplay().getElement();
dis.getElementsByTagName("canvas")[0].style = "width:1100px;"
dis.setAttribute("style", "width:1100px");
display.appendChild(guac.getDisplay().getElement());
// Error handler
guac.onerror = function(error) {
alert(error);
};
// Connect
guac.connect();