This commit is contained in:
2022-03-05 18:23:18 +01:00
parent 394cd71e44
commit dc98f9ced2

View File

@@ -52,9 +52,8 @@ export default {
elementWithoutOverflow.innerText = this.description;
document.body.appendChild(elementWithoutOverflow);
const elemWithoutOverflowHeight = elementWithoutOverflow.getBoundingClientRect()[
"height"
];
const elemWithoutOverflowHeight =
elementWithoutOverflow.getBoundingClientRect()["height"];
this.overflow = elemWithoutOverflowHeight > height;
this.removeElements(document.querySelectorAll(".dummy-non-overflow"));