Fix layouting so the contents are actually not lost

Authored by aacid on May 27 2018, 5:45 AM.