The footer (the DialogButtonBox + actions) may be bigger than the contents, so let's also make sure it fits.