[BUG] Issue in calculating extents of rotated object when rendering a view

Maybe not an answer to the question, but a couple of suggestions for a workaround: