Skip to content

Commit

Permalink
Merge pull request #55 from theashraf/main
Browse files Browse the repository at this point in the history
fix(playground): πŸ› dotLottie canvas element size
  • Loading branch information
mbasaglia authored Jun 11, 2024
2 parents c92a927 + 843978d commit 9d99dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/scripts/lottie_raw_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ class DotLottieWrapper
if ( options.animationData !== undefined )
{
dl_options.data = JSON.stringify(options.animationData);
this.canvas.style.width = `${options.animationData.w}px`;
this.canvas.style.height = `${options.animationData.h}px`;
this.canvas.style.width = "100%";
this.canvas.style.height = "100%";
}
else
{
Expand Down

0 comments on commit 9d99dd1

Please sign in to comment.