Skip to content

Commit

Permalink
feat(lottie): adjust picture size
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonChen1982 committed Aug 5, 2020
1 parent 9821735 commit 2b7254d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lottie-displays/core/SpriteElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default class SpriteElement extends Sprite {
* @param {object} config layer data information
*/
constructor(elem, config) {
const {texture} = config;
super({texture});
const {texture, asset} = config;
super({texture, width: asset.w, height: asset.h});

this.elem = elem;
this.config = config;
Expand Down

0 comments on commit 2b7254d

Please sign in to comment.