summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-07-26 14:08:26 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-07-26 14:35:50 +1000
commit52f76a247293597715700eb73bbe102f5a2cd4cf (patch)
tree3d0000a111bacb29788ef5c90973c1e165b824c7
parent2713a008a6b7fb9e63d5b8004fc39dae22e1abf7 (diff)
downloadtalos-petitboot-52f76a247293597715700eb73bbe102f5a2cd4cf.tar.gz
talos-petitboot-52f76a247293597715700eb73bbe102f5a2cd4cf.zip
ui/ncurses: Increase height of boot-editor padv1.5.1
Similarly to nc-subset, extend the maximum height of the boot-editor pad to account for the fields of the device select potentially wrapping due to long device names. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--ui/ncurses/nc-boot-editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ncurses/nc-boot-editor.c b/ui/ncurses/nc-boot-editor.c
index 8991095..5b098a4 100644
--- a/ui/ncurses/nc-boot-editor.c
+++ b/ui/ncurses/nc-boot-editor.c
@@ -310,7 +310,7 @@ static int layout_pair(struct boot_editor *boot_editor, int y,
static int pad_height(int blockdevs_height)
{
- return 10 + blockdevs_height;
+ return 10 + (2 * blockdevs_height);
}
static void boot_editor_layout_widgets(struct boot_editor *boot_editor)
OpenPOWER on IntegriCloud