From 9e6657d6b26808f878760cc22994a9d0958f578a Mon Sep 17 00:00:00 2001 From: Sergey Date: Fri, 18 Dec 2015 22:40:12 +0300 Subject: [PATCH] fix scale9error error --- cocos/ui/UIScale9Sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/ui/UIScale9Sprite.cpp b/cocos/ui/UIScale9Sprite.cpp index dd10bd886c..914265a84f 100644 --- a/cocos/ui/UIScale9Sprite.cpp +++ b/cocos/ui/UIScale9Sprite.cpp @@ -1099,7 +1099,7 @@ namespace ui { topHeight = capInsets.origin.y - offsets.y; centerHeight = capInsets.size.height; - bottomHeight = originalSize.height - (capInsets.origin.x + centerHeight) - offsets.w; + bottomHeight = originalSize.height - (capInsets.origin.y + centerHeight) - offsets.w; }