Defualt width
This commit is contained in:
parent
5bb4f9b903
commit
359f21914f
|
@ -14,6 +14,8 @@ function ButtonView(options) {
|
||||||
options.cursor = miscUtil.valueWithDefault(options.cursor, 'hide');
|
options.cursor = miscUtil.valueWithDefault(options.cursor, 'hide');
|
||||||
|
|
||||||
TextView.call(this, options);
|
TextView.call(this, options);
|
||||||
|
|
||||||
|
this.dimens.width = this.dimens.width || Math.min(10, this.client.term.termWidth - this.position.col);
|
||||||
}
|
}
|
||||||
|
|
||||||
util.inherits(ButtonView, TextView);
|
util.inherits(ButtonView, TextView);
|
||||||
|
|
Loading…
Reference in New Issue