From ef66a02f238bedccdefd2a5e60ee29c1325c51aa Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 16 Jul 2020 14:14:21 -0300 Subject: don't let WrapLabel text extend one letter too far I Am Very Good At Managing Npm Repositories --- ui/WrapLabel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/WrapLabel.js b/ui/WrapLabel.js index d40b29d..d621a49 100644 --- a/ui/WrapLabel.js +++ b/ui/WrapLabel.js @@ -29,7 +29,7 @@ module.exports = class WrapLabel extends Label { return [] } - return wrap(this.text, this.w).map(l => l.trim()) + return wrap(this.text, this.w - 1).map(l => l.trim()) } get h() { -- cgit 1.3.0-6-gf8a5