MDL-42340 JavaScript: Stop dialogues forcing overflow - use CSS instead