Set the max height from the viewer widget.