Skip to content

Commit 6732f99

Browse files
committed
Issue cocos2d#2416: Layout can't move caused by mark mistak
1 parent 63a2c37 commit 6732f99

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

extensions/ccui/base-classes/CCProtectedNodeCanvasRenderCmd.js

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
var childLen = locChildren.length, pLen = locProtectedChildren.length;
144144

145145
this._syncStatus(parentCmd);
146+
this._dirtyFlag = 0;
146147

147148
node.sortAllChildren();
148149
node.sortAllProtectedChildren();

extensions/ccui/base-classes/CCProtectedNodeWebGLRenderCmd.js

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
//optimize performance for javascript
4848
currentStack.stack.push(currentStack.top);
4949
this._syncStatus(parentCmd);
50+
this._dirtyFlag = 0;
5051
currentStack.top = this._stackMatrix;
5152

5253
var locGrid = node.grid;

extensions/ccui/layouts/UILayoutCanvasRenderCmd.js

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
node._clipElemType = node._stencil instanceof cc.Sprite;
129129

130130
this._syncStatus(parentCmd);
131+
this._dirtyFlag = 0;
131132

132133
cc.renderer.pushRenderCommand(this._rendererSaveCmd);
133134

extensions/ccui/layouts/UILayoutWebGLRenderCmd.js

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
var currentStack = cc.current_stack;
160160
currentStack.stack.push(currentStack.top);
161161
this._syncStatus(parentCmd);
162+
this._dirtyFlag = 0;
162163
currentStack.top = this._stackMatrix;
163164

164165
node._clippingStencil.visit(this);

0 commit comments

Comments
 (0)