Fix for dialog size logic.
Fix for css not associated with legend.