1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Restructure for readability. no change

This commit is contained in:
Dave Davenport 2017-01-03 00:59:37 +01:00
parent 37d99378dd
commit 9c7b5fe7a9

View file

@ -469,7 +469,9 @@ static int listview_get_desired_height ( widget *wid )
if ( h == 0 ) { if ( h == 0 ) {
return widget_padding_get_padding_height ( WIDGET (lv) ); return widget_padding_get_padding_height ( WIDGET (lv) );
} }
return h * lv->element_height + ( h - 1 ) * lv->spacing+widget_padding_get_padding_height ( WIDGET (lv) ); int height = widget_padding_get_padding_height ( WIDGET (lv) );
height += h*(lv->element_height+lv->spacing) - lv->spacing;
return height;
} }
void listview_set_show_scrollbar ( listview *lv, gboolean enabled ) void listview_set_show_scrollbar ( listview *lv, gboolean enabled )