Revert "Refactor overlay resizing."

This reverts commit f62204d4344c5a7faf0c025e45e8c258192bacb0.