Recompute webpage viewport dimensions when resizing html frames

This patch ensures the viewport dimensions of the composer html frame are recomputed every time the frame is resized, to ensure that the webbpage is always rendered according to the available space.

Funded by Sourcepole QGIS Enterprise.