Bug 1095805 - Update modal dialog height on resize event and not visible

https://bugzilla.mozilla.org/show_bug.cgi?id=1095805