Fixes Firefox 20 resizing bug.