fix bug 840669 - Prevent zoom layout issues

https://bugzilla.mozilla.org/show_bug.cgi?id=840669