Fix layout crash when browser zoom <100%