fix build.resize for firefox