title: FabricJS Update Bounding Box
body: <p>I'm unable to get the bounding box of a canvas to update after panning. I've tried to <code>requestRenderAll</code> and to reset the coordinates of each object, but the bounding box stays in the same location.</p>
  
  <p>Is there a different function I should be calling?</p>
  
  <p>Things I've tried:</p>
  
  <pre><code>    if (!pausePanning &amp;&amp; e.self.x &amp;&amp; e.self.y &amp;&amp; e.e.type) {
        currentX = e.self.x;
        currentY = e.self.y;
        xChange = currentX - panX;
        yChange = currentY - panY;
  
        if( (Math.abs(xChange) &lt;= 100) &amp;&amp;
            (Math.abs(yChange) &lt;= 100) ) {
          var delta = new fabric.Point(xChange, yChange);
          canvas.relativePan(delta);
        }
  
        panX = e.self.x;
        panY = e.self.y;
  
        // attempting to redraw bounding
        canvas.getObjects().forEach(function(o) {
          o.setCoords();
        });
  
  
        // this also doesn't work
        canvas.requestRenderAll();
      }
    }
  </code></pre>