Defualt width
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user