function onResize()
   {
      // Update graph parameters.
      graphWidth = window.innerWidth;
      graphHeight = window.innerHeight;

      graph.attr('width', graphWidth).attr('height', graphHeight);

      layout.size([graphWidth, graphHeight]).resume();

      updateMenuUI();

      updateTableUIExtent();

      // Hides any existing node context menu.
      hideNodeContextMenu();

      centerGraph(zoomFit, 1000, data.allNodesFixed ? 0 : 2000);
   }
function onResize()
   {
      
      graphWidth = window.innerWidth;
      graphHeight = window.innerHeight;

      graph.attr('width', graphWidth).attr('height', graphHeight);

      layout.size([graphWidth, graphHeight]).resume();

      updateMenuUI();

      updateTableUIExtent();

      
      hideNodeContextMenu();

      centerGraph(zoomFit, 1000, data.allNodesFixed ? 0 : 2000);
   }
function onResize ( ) { // Update graph parameters. graphWidth = window . innerWidth ; graphHeight = window . innerHeight ; graph . attr ( 'width' , graphWidth ) . attr ( 'height' , graphHeight ) ; layout . size ( [ graphWidth , graphHeight ] ) . resume ( ) ; updateMenuUI ( ) ; updateTableUIExtent ( ) ; // Hides any existing node context menu. hideNodeContextMenu ( ) ; centerGraph ( zoomFit , 1000 , data . allNodesFixed ? 0 : 2000 ) ; }
Handles the window resize event.
Handles the window resize event .