mirror of
https://github.com/motajs/template.git
synced 2026-11-09 03:34:30 +08:00
fix: 元素使用默认大小时缓存尺寸不正确
This commit is contained in:
1 parent
798c967e5e
commit
a9ee163bee
1 file changed
+1
@@ -164,6 +164,7 @@ export abstract class RenderItem
|
||||
this.transform.bind(this);
|
||||
if (enableCache) {
|
||||
this.cache = this.requireCanvas();
|
||||
this.cache.size(this.width, this.height);
|
||||
} else {
|
||||
this.cache = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user