Use calculated top offset for arrow_down.

Fixes: #189
This commit is contained in:
Dave Davenport 2015-07-24 17:00:59 +02:00
parent fa5c36835d
commit c25396d50b
1 changed files with 1 additions and 1 deletions

View File

@ -1057,7 +1057,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
// TODO calculate from top.
textbox_move ( state.arrowbox_bottom,
state.w - config.padding - state.arrowbox_bottom->w,
config.padding + state.max_rows * element_height + LINE_MARGIN );
state.top_offset + (state.max_rows-1) * element_height + LINE_MARGIN );
// filtered list
state.line_map = g_malloc0_n ( state.num_lines, sizeof ( int ) );