Resizes the dialog to the inner size of the window. This is needed since various browsers have different border sizes on windows.
<void> resizeToInnerSize()