THtmlViewer component
property MaxVertical: integer;
MaxVertical gives the height in pixels of the document as it is currently formatted. This height may be used to adjust THtmlViewer's height to just fit a small document.
Note that MaxVertical will ordinarily change if the document width changes.