Auto resizing of the dialog eventually working.

Added a timer signal calling a setSize function to adjust the height of the dialog after setHtml.
The height is limited to the available space. Vertical scroll bar when needed.