From 6085b70dfc943c3deb2880170859c4963622d521 Mon Sep 17 00:00:00 2001 From: Nick Winter <livelily@gmail.com> Date: Mon, 1 Sep 2014 16:22:04 -0700 Subject: [PATCH] Fixed a bounds offset issue in the Thang Editor colors tab. --- app/views/editor/thang/ThangTypeColorsTabView.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/editor/thang/ThangTypeColorsTabView.coffee b/app/views/editor/thang/ThangTypeColorsTabView.coffee index 47c3f2594..69651b1ae 100644 --- a/app/views/editor/thang/ThangTypeColorsTabView.coffee +++ b/app/views/editor/thang/ThangTypeColorsTabView.coffee @@ -67,11 +67,12 @@ module.exports = class ThangTypeColorsTabView extends CocoView @spriteBuilder.setOptions options @spriteBuilder.buildColorMaps() @movieClip = @spriteBuilder.buildMovieClip animation - larger = Math.min(400 / @movieClip.nominalBounds.width, 400 / @movieClip.nominalBounds.height) + bounds = @movieClip.frameBounds?[0] ? @movieClip.nominalBounds + larger = Math.min(400 / bounds.width, 400 / bounds.height) @movieClip.scaleX = larger @movieClip.scaleY = larger - @movieClip.regX = @movieClip.nominalBounds.x - @movieClip.regY = @movieClip.nominalBounds.y + @movieClip.regX = bounds.x + @movieClip.regY = bounds.y @stage.addChild @movieClip updateContainer: ->