diff --git a/src/pixi/extras/TilingSprite.js b/src/pixi/extras/TilingSprite.js index 3c44415..f20a0b3 100644 --- a/src/pixi/extras/TilingSprite.js +++ b/src/pixi/extras/TilingSprite.js @@ -371,8 +371,16 @@ { if(isFrame) { - targetWidth = frame.width; - targetHeight = frame.height; + if (texture.trim) + { + targetWidth = texture.trim.width; + targetHeight = texture.trim.height; + } + else + { + targetWidth = frame.width; + targetHeight = frame.height; + } newTextureRequired = true; }