Commit a93b5e27 authored by campaign's avatar campaign

修复暴露出a的问题

parent 87797039
...@@ -91,6 +91,11 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -91,6 +91,11 @@ Minder.Receiver = kity.createClass( 'Receiver', {
if ( me.textShape.getOpacity() == 0 ) { if ( me.textShape.getOpacity() == 0 ) {
me.textShape.setOpacity( 1 ); me.textShape.setOpacity( 1 );
if(/^\|/.test(text)){
text = text.replace(/^\|/,'');
me.container.textContent = text;
}
} }
//#46 修复在ff下定位到文字后方空格光标不移动问题 //#46 修复在ff下定位到文字后方空格光标不移动问题
if ( browser.gecko && /\s$/.test( text ) ) { if ( browser.gecko && /\s$/.test( text ) ) {
...@@ -100,7 +105,7 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -100,7 +105,7 @@ Minder.Receiver = kity.createClass( 'Receiver', {
me.setContainerStyle(); me.setContainerStyle();
me.minderNode.setText( text ); me.minderNode.setText( text );
if ( text.length == 0 ) { if ( text.length == 0 ) {
me.minderNode.setText( 'a' ); me.minderNode.setText( '|' );
} }
me.km.updateLayout( me.minderNode ); me.km.updateLayout( me.minderNode );
......
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