From c492f4d3c3d244ae05f6c3612f8419e95262c011 Mon Sep 17 00:00:00 2001 From: pipu Date: Mon, 28 Apr 2014 10:06:11 +0800 Subject: [PATCH] fixed ui layout clip --- .../cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/editor-support/cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp b/cocos/editor-support/cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp index a6d4b02be8..8f26d22061 100644 --- a/cocos/editor-support/cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp +++ b/cocos/editor-support/cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp @@ -54,6 +54,8 @@ namespace cocostudio panel->setSize(Size(w, h)); /**/ + panel->setClippingEnabled(DICTOOL->getBooleanValue_json(options, "clipAble")); + bool backGroundScale9Enable = DICTOOL->getBooleanValue_json(options, "backGroundScale9Enable"); panel->setBackGroundImageScale9Enabled(backGroundScale9Enable); int cr = DICTOOL->getIntValue_json(options, "bgColorR");