Do not exceed the display width with the SimpleModal frame (see #5750)