fix resize on chromium