From c4f65434edb7e2f30070803d85f59ef2a9089253 Mon Sep 17 00:00:00 2001 From: oc Date: Thu, 28 Jun 2018 18:05:26 +0800 Subject: [PATCH] Fix gif --- libs/events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/events.js b/libs/events.js index 265d0b44..b82df54e 100644 --- a/libs/events.js +++ b/libs/events.js @@ -512,8 +512,8 @@ events.prototype.doAction = function() { gif.style.position = 'absolute'; gif.style.left = (core.calValue(data.loc[0])*core.domStyle.scale)+"px"; gif.style.top = (core.calValue(data.loc[1])*core.domStyle.scale)+"px"; - gif.style.width = core.material.images.images[data.name].style.width*core.domStyle.scale+"px"; - gif.style.height = core.material.images.images[data.name].style.height*core.domStyle.scale+"px"; + gif.style.width = core.material.images.images[data.name].width*core.domStyle.scale+"px"; + gif.style.height = core.material.images.images[data.name].height*core.domStyle.scale+"px"; core.dom.gif2.appendChild(gif); } else {