FIX: removes rounding correction as it can be in either direction (#9538)

This commit is contained in:
Joffrey JAFFEUX 2020-04-23 23:10:40 +02:00 committed by GitHub
parent 585e7bcfe8
commit b871e79c5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -858,8 +858,7 @@ export default Component.extend(
this.element.classList.add("is-under");
}
// - 1 accounts for any rounding error
wrapper.style.width = `${this.element.offsetWidth - 1}px`;
wrapper.style.width = `${this.element.offsetWidth}px`;
wrapper.style.height = `${height}px`;
}
}