Fix test cocostudio test->cocostudio GUItest->MoveBy vertical direction under lua test project can not scroll back to page 1 from page 2

This commit is contained in:
XiaoFeng 2015-10-10 17:50:48 +08:00
parent 4df211fa0b
commit aee3244ad3
1 changed files with 1 additions and 1 deletions

View File

@ -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,