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:
parent
37d99378dd
commit
9c7b5fe7a9
1 changed files with 3 additions and 1 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue