Make contentRect work with DiagramRenderer