Fixes #5314: Display content of popup with overflow if needed
Merge pull request #588 from VinceMacBuche/bug_5314/simplemodal-overflow

Fixes #5314: Display content of popup with overflow if needed