From 8d1fe4f3a4e67cf51721bd9dff9696048edb377b Mon Sep 17 00:00:00 2001 From: Eray Hanoglu Date: Thu, 1 Nov 2018 13:50:21 +0300 Subject: [PATCH] Buttons does not shift vertically when box resized --- lib/widgets/question.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/widgets/question.js b/lib/widgets/question.js index b1f20985..2f493363 100644 --- a/lib/widgets/question.js +++ b/lib/widgets/question.js @@ -73,6 +73,8 @@ Question.prototype.ask = function(text, callback) { this.show(); this.setContent(' ' + text); + this._.okay.top = this.height - 3; + this._.cancel.top = this.height - 3; this.onScreenEvent('keypress', press = function(ch, key) { if (key.name === 'mouse') return;