Defualt width

This commit is contained in:
Bryan Ashby 2018-06-23 21:02:33 -06:00
parent 5bb4f9b903
commit 359f21914f
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ function ButtonView(options) {
options.cursor = miscUtil.valueWithDefault(options.cursor, 'hide');
TextView.call(this, options);
this.dimens.width = this.dimens.width || Math.min(10, this.client.term.termWidth - this.position.col);
}
util.inherits(ButtonView, TextView);