Fix #1419 Fix resize issue on mobile view
Merge pull request #614 from nlegoff/fix_1419

[3.8] Fix #1419 Fix resize issue on mobile view