Fix resizing issue with Firefox 20+.
Merge pull request #82 from mattleff/master

Fix resizing issue with Firefox 20+.