From 359f21914fff47d6e04a2fedbb34e783acdd13bd Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 23 Jun 2018 21:02:33 -0600 Subject: [PATCH] Defualt width --- core/button_view.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/button_view.js b/core/button_view.js index 63de435a..8e8d6ebc 100644 --- a/core/button_view.js +++ b/core/button_view.js @@ -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);