Fix resizing issue with Firefox 20+.