3dt: ensure controls view is not placed outside the screen area