This commit is contained in:
yumoqing 2025-09-30 11:15:42 +08:00
parent e323c4e2fb
commit f21664668c

View File

@ -923,10 +923,12 @@ bricks.UiText =class extends bricks.UiType {
constructor(opts){ constructor(opts){
opts.dynsize = opts.dynsize || true; opts.dynsize = opts.dynsize || true;
opts.cfontsize = opts.cfontsize || 1; opts.cfontsize = opts.cfontsize || 1;
opts.height = '200px';
super(opts); super(opts);
this.uitype='text'; this.uitype='text';
this.build(); this.build();
this.charsize_sizing(); this.charsize_sizing();
this.set_style('overflow', 'auto');
this.bind('keydown', this.key_handle.bind(this)) this.bind('keydown', this.key_handle.bind(this))
} }
create(){ create(){