1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

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

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 ) );