Skip to content

Commit

Permalink
ui/ncurses: Increase height of boot-editor pad
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sammj committed Jul 26, 2017
1 parent 2713a00 commit 52f76a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ncurses/nc-boot-editor.c
Expand Up @@ -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)
Expand Down

0 comments on commit 52f76a2

Please sign in to comment.