bugfix for error when a fixed width dialog is opened and then an auto-width dialog (adapted to height calculation)
Merge pull request #416 from sgaertner/modal_box_autowidth_fix

Modal Box Autowidth Fix