Send size event on window resize.

This commit is contained in:
Michael Jumper
2012-10-23 10:41:31 -07:00
parent a6435f7c05
commit d5d4d506c0

View File

@@ -722,6 +722,11 @@ GuacamoleUI.attach = function(guac) {
guac.disconnect(); guac.disconnect();
}; };
// Send size events on resize
window.onresize = function() {
guac.sendSize(window.innerWidth, window.innerHeight);
};
// Handle clipboard events // Handle clipboard events
GuacamoleUI.clipboard.onchange = function() { GuacamoleUI.clipboard.onchange = function() {