Updates lua CCControlSliderTest. (#16968)

* Updates lua CCControlSliderTest.
fixed http://punchbox.info:3000/issues/26029

* [lua-tests] Fix the display position of CCControlSilderTest on win32.
This commit is contained in:
James Chen 2016-12-07 14:55:43 +08:00 committed by minggo
parent 46fd7e3d59
commit fb89672fff
1 changed files with 2 additions and 2 deletions

View File

@ -366,10 +366,10 @@ local function runCCControlTest()
local screenSize = cc.Director:getInstance():getWinSize()
--Add a label in which the slider value will be displayed
local pDisplayValueLabel = cc.Label:createWithSystemFont("Move the slider thumb!\nThe lower slider is restricted." ,"Marker Felt", 32)
local pDisplayValueLabel = cc.Label:createWithSystemFont("Move the slider thumb!\nThe lower slider is restricted." ,"Marker Felt", 24)
pDisplayValueLabel:retain()
pDisplayValueLabel:setAnchorPoint(cc.p(0.5, -1.0))
pDisplayValueLabel:setPosition(cc.p(screenSize.width / 1.7, screenSize.height / 2.0))
pDisplayValueLabel:setPosition(cc.p(screenSize.width / 2.0, screenSize.height / 2.0 + 24))
pLayer:addChild(pDisplayValueLabel)
local function valueChanged(pSender)