Skip to content

Commit

Permalink
fix bug with height
Browse files Browse the repository at this point in the history
  • Loading branch information
swaathee committed Jan 7, 2021
1 parent c90c675 commit d3156b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clarity-js/src/interaction/resize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function recompute(): void {
// Therefore, when possible, use documentElement's clientWidth property.
data = {
width: de && "clientWidth" in de ? Math.min(de.clientWidth, window.innerWidth) : window.innerWidth,
height: de && "clientHeight" in de ? Math.min(de.clientWidth, window.innerHeight) : window.innerHeight,
height: de && "clientHeight" in de ? Math.min(de.clientHeight, window.innerHeight) : window.innerHeight,
};
encode(Event.Resize);
}
Expand Down

0 comments on commit d3156b7

Please sign in to comment.