gui: set the scale only when there is a preview object.