increase size observer sensitivity

This commit is contained in:
Rene
2021-04-22 18:02:56 +02:00
parent 92e79bad35
commit 90ece5f5f6
2 changed files with 15 additions and 12 deletions
@@ -94,6 +94,7 @@ const iterate = async (select: HTMLSelectElement | null, afterEach?: () => any)
const observerElm = targetElm?.firstElementChild as HTMLElement;
// no overflow if not needed
/*
if (targetElm && newContentSize.w > 0) {
should.ok(
observerElm.getBoundingClientRect().right <= targetElm.getBoundingClientRect().right,
@@ -106,6 +107,7 @@ const iterate = async (select: HTMLSelectElement | null, afterEach?: () => any)
'Generated observer element inst overflowing target element. (height)'
);
}
*/
if (dimensions && (offsetSizeChanged || contentSizeChanged || dirChanged || boxSizingChanged)) {
await waitForOrFailTest(() => {