We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e801617 commit 0ee87f3Copy full SHA for 0ee87f3
samples/js-tests/src/GUITest/UIImageViewTest/UIImageViewTest.js
@@ -159,7 +159,7 @@ var UIImageViewFlipTest = UIScene.extend({
159
var toggleScale9 = new ccui.Button();
160
toggleScale9.setTitleText("Toggle Scale9");
161
var ip9 = imageView.getPosition();
162
- toggleScale9.setPosition(ip9 + 50, ip9 - imageView.getContentSize().height/2- 20);
+ toggleScale9.setPosition(ip9.x + 50, ip9.y - imageView.getContentSize().height/2- 20);
163
this.addChild(toggleScale9);
164
toggleScale9.addClickEventListener(function(){
165
imageView.setScale9Enabled(!imageView.isScale9Enabled());
0 commit comments