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 c9f58d6 commit 1cc31c3Copy full SHA for 1cc31c3
cocos2d/base_nodes/CCdomNode.js
@@ -45,6 +45,10 @@ cc.DOM.methods = {
45
this._position.y = y;
46
this.dom.translate(this._position.x, -this._position.y);
47
},
48
+ setPositionX:function (x) {
49
+ this._position.x = x;
50
+ this.dom.translate(this._position.x, -this._position.y);
51
+ },
52
setScale:function (scale, scaleY) {
53
//save dirty region when before change
54
//this._addDirtyRegionToDirector(this.boundingBoxToWorld());
0 commit comments