From aee3244ad3c5144b307d2ed88582d5c5901d394e Mon Sep 17 00:00:00 2001 From: XiaoFeng Date: Sat, 10 Oct 2015 17:50:48 +0800 Subject: [PATCH] Fix test cocostudio test->cocostudio GUItest->MoveBy vertical direction under lua test project can not scroll back to page 1 from page 2 --- .../src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lua-tests/src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua b/tests/lua-tests/src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua index 6a6ac7b451..237c35d62b 100644 --- a/tests/lua-tests/src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua +++ b/tests/lua-tests/src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua @@ -1788,8 +1788,8 @@ add_new_testcase(function() local pageView = ccui.PageView:create() pageView:setTouchEnabled(true) - pageView:setContentSize(cc.size(240, 130)) pageView:setDirection(ccui.PageViewDirection.VERTICAL) + pageView:setContentSize(cc.size(240, 130)) local backgroundSize = background:getContentSize() pageView:setPosition(cc.p((widgetSize.width - backgroundSize.width) / 2 + (backgroundSize.width - pageView:getContentSize().width) / 2,