Handle sizing issues with modal dialog