Skip to content

Commit 1cc31c3

Browse files
committed
added support for menuItemToggle, fixed some bugs
1 parent c9f58d6 commit 1cc31c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cocos2d/base_nodes/CCdomNode.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ cc.DOM.methods = {
4545
this._position.y = y;
4646
this.dom.translate(this._position.x, -this._position.y);
4747
},
48+
setPositionX:function (x) {
49+
this._position.x = x;
50+
this.dom.translate(this._position.x, -this._position.y);
51+
},
4852
setScale:function (scale, scaleY) {
4953
//save dirty region when before change
5054
//this._addDirtyRegionToDirector(this.boundingBoxToWorld());

0 commit comments

Comments
 (0)