Skip to content

Commit

Permalink
Fix resolver side effect simulator type
Browse files Browse the repository at this point in the history
  • Loading branch information
kqualters-elastic committed Sep 15, 2021
1 parent c6b5475 commit dcea043
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 dcea043

Please sign in to comment.