Work around broken Opera (Presto) getBoundingClientRect

Closes #2331