Fixed canvas-based plugin resize