Skip to content

Commit

Permalink
Fixed handling of hideable navbar active change in autoscaling and cl…
Browse files Browse the repository at this point in the history
…ipping modules.
  • Loading branch information
jlesage committed May 11, 2017
1 parent 49271f3 commit bf624cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rootfs/opt/novnc/app/modules/autoscaling.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var AutoScalingModule = {
activate: function() {
// Add event handlers.
$(window).on('resize', this.handleWindowResize);
$(document).on('UIModule:DynamicNavbar', this.handleNavbarChange);
$(document).on('UIModule:HideableNavbar', this.handleNavbarChange);
// Add RFB callback.
UI.rfbFBUCompleteCallbacks.add(this.handleFBUComplete);
// Apply autoscaling.
Expand All @@ -47,7 +47,7 @@ var AutoScalingModule = {
deactivate: function() {
// Remove event handlers.
$(window).off('resize', this.handleWindowResize);
$(document).off('UIModule:DynamicNavbar', this.handleNavbarChange);
$(document).off('UIModule:HideableNavbar', this.handleNavbarChange);
// Remove RFB callback.
UI.rfbFBUCompleteCallbacks.remove(this.handleFBUComplete);
// Apply auto scaling.
Expand Down
4 changes: 2 additions & 2 deletions rootfs/opt/novnc/app/modules/clipping.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var ClippingModule = {
activate: function() {
// Add event handlers.
$(window).on('resize', this.updateDisplay);
$(document).on('UIModule:DynamicNavbar', this.handleUIModuleChange);
$(document).on('UIModule:HideableNavbar', this.handleUIModuleChange);
// Add RFB callback.
UI.rfbFBUCompleteCallbacks.add(this.updateDisplay);
// Enable clipping.
Expand All @@ -41,7 +41,7 @@ var ClippingModule = {
deactivate: function() {
// Remove event handlers.
$(window).off('resize', this.updateDisplay);
$(document).off('UIModule:DynamicNavbar', this.handleUIModuleChange);
$(document).off('UIModule:HideableNavbar', this.handleUIModuleChange);
// Remove RFB callback.
UI.rfbFBUCompleteCallbacks.remove(this.updateDisplay);
// Disable clipping.
Expand Down

0 comments on commit bf624cb

Please sign in to comment.