Fixing bounds computation for top-level canvas.