Fixed a resizing issue with older versions of WebKit