Skip to content

Commit

Permalink
Merge pull request #9 from kqualters-elastic/ts-4-3-4
Browse files Browse the repository at this point in the history
Fix resolver side effect simulator type
  • Loading branch information
tylersmalley committed Sep 15, 2021
2 parents bd02f80 + dcea043 commit be6f865
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,14 @@ export const sideEffectSimulatorFactory: () => SideEffectSimulator = () => {
*/
simulateElementResize(target: Element, contentRect: DOMRect) {
if (this.elements.has(target)) {
const entries: ResizeObserverEntry[] = [{ target, contentRect }];
const entries: ResizeObserverEntry[] = [
{
target,
contentRect,
borderBoxSize: [{ inlineSize: 0, blockSize: 0 }],
contentBoxSize: [{ inlineSize: 0, blockSize: 0 }],
},
];
this.callback(entries, this);
}
}
Expand Down

0 comments on commit be6f865

Please sign in to comment.