code: function(init) {
              pgwBrowser.viewport.width = $(window).width();
              pgwBrowser.viewport.height = $(window).height();
  
              // Resize triggers
              if (typeof init == 'undefined') {
                  if (resizeEvent == null) {
                      $(window).trigger('PgwBrowser::StartResizing');
                  } else {
                      clearTimeout(resizeEvent);
                  }
  
                  resizeEvent = setTimeout(function() {
                      $(window).trigger('PgwBrowser::StopResizing');
                      clearTimeout(resizeEvent);
                      resizeEvent = null;
                  }, 300);
              }
              
              return true;
          }
docs: Set viewport size