resolved canvas-breaking-on-resize bug by passing the location of the active segment to calculateSegmentCanvasDimensions method