#1365 fix for min-height in modals