From fb89672fff5eb7be3244f39dba514621bf87899a Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 7 Dec 2016 14:55:43 +0800 Subject: [PATCH] Updates lua CCControlSliderTest. (#16968) * Updates lua CCControlSliderTest. fixed http://punchbox.info:3000/issues/26029 * [lua-tests] Fix the display position of CCControlSilderTest on win32. --- tests/lua-tests/src/ExtensionTest/ExtensionTest.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lua-tests/src/ExtensionTest/ExtensionTest.lua b/tests/lua-tests/src/ExtensionTest/ExtensionTest.lua index e20f04c7c2..2379c868ae 100644 --- a/tests/lua-tests/src/ExtensionTest/ExtensionTest.lua +++ b/tests/lua-tests/src/ExtensionTest/ExtensionTest.lua @@ -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)