提交 9c41aee9 编写于 作者: M Mr.doob

Editor: Minor UI improvement.

上级 08c71adc
......@@ -800,7 +800,9 @@ UI.Number.prototype.setValue = function ( value ) {
if ( value > this.max ) value = this.max;
this.value = value;
this.dom.value = value.toFixed( this.precision ) + ' ' + this.unit;
this.dom.value = value.toFixed( this.precision );
if ( this.unit !== '' ) this.dom.value += ' ' + this.unit;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册