The Dialog is handling it anyway, so this doesn't really do anything useful. We might need to add this back if Dialog actually handles edge-to-edge properly. (cherry picked from commit e3b27209246c60e2de7033976573681352fee7f9)