Bug 856497 - Fix dynamic viewport sizing for margin changes. r=kats a=akeybl