File tree 1 file changed +2
-2
lines changed
tests/lua-tests/src/WebViewTest
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function WebViewTest:init()
77
77
78
78
local backBtn = ccui .Button :create (" cocosui/animationbuttonnormal.png" , " cocosui/animationbuttonpressed.png" )
79
79
backBtn :setTitleText (" Back" )
80
- backBtn :setPosition (winSize .width / 2 + self ._webView :getContentSize ().width / 2 + backBtn :getContentSize ().width / 2 + 10 , winSize .height - 50 )
80
+ backBtn :setPosition (winSize .width / 2 + self ._webView :getContentSize ().width / 2 + backBtn :getContentSize ().width / 2 + 10 , winSize .height - 10 )
81
81
backBtn :addClickEventListener (function (sender )
82
82
self ._webView :goBack ()
83
83
end )
@@ -127,4 +127,4 @@ function WebViewTestMain()
127
127
scene :addChild (WebViewTest .create ())
128
128
scene :addChild (CreateBackMenuItem ())
129
129
return scene
130
- end
130
+ end
You can’t perform that action at this time.
0 commit comments