initDefaultWidht() for various views

This commit is contained in:
Bryan Ashby 2018-06-23 22:23:22 -06:00
parent 0cfd45d8a9
commit 3aa23db306
8 changed files with 16 additions and 2 deletions

View file

@ -15,7 +15,7 @@ function ButtonView(options) {
TextView.call(this, options);
this.dimens.width = this.dimens.width || Math.min(10, this.client.term.termWidth - this.position.col);
this.initDefaultWidth();
}
util.inherits(ButtonView, TextView);