Commit 53a7ccc6 authored by campaign's avatar campaign

删光节点内容时,没有节点变形了

parent 0a9329d1
......@@ -90,13 +90,17 @@ Minder.Receiver = kity.createClass( 'Receiver', {
me.setContainerStyle();
me.minderNode.setText( text );
if ( text.length == 0 ) {
me.textShape.setContent( 'a' );
me.textShape.setOpacity( 0 );
me.minderNode.setText('a');
}
me.km.updateLayout( me.minderNode );
me.textShape = me.minderNode.getTextShape();
if(text.length == 0){
me.textShape.setOpacity( 0 );
}
me.setBaseOffset();
me.updateTextData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment