onWindowResize ( resizeData )

The event enables you to additionally handle the visitor's changing of the chat widget dimensions.

The "resizeData" object is passed as an argument, containing the following properties:

PropertyTypeDescription
deltaX integer Value in pixels that the chat widget size changed by horizontally.
deltaY integer Value in pixels that the chat widget size changed by vertically.

Examples

  1. Using jQuery
    $(document).on("netroxwindowresize", function(event, resizeData) {
        // Your actions
    });       
  2. Using the nsc_API object
    nsc_API = { /* ... */ };
    
    nsc_API.onWindowResize = function(resizeData) {
        // Your actions
    };        

All rights reserved. Copyright © 2017 Netrox SC
Host CMS