diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-06-02 09:17:06 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-06-02 09:17:06 +0200 |
commit | 4821320833216c37ffb334700c9dfec50fcea37e (patch) | |
tree | a99283a91f09b675df5c2d941a0de615e7b3a1af | |
parent | 6a6216af13af243b5c232430748d11481f5ecd8b (diff) |
[Listview] Try to fix sizing of barview.
Issue: #1137
-rw-r--r-- | source/widgets/listview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/widgets/listview.c b/source/widgets/listview.c index 25409f7a..0650cccc 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -328,7 +328,7 @@ static void barview_draw ( widget *wid, cairo_t *draw ) if ( lv->barview.direction == LEFT_TO_RIGHT ) { for ( unsigned int i = 0; i < max && width > 0; i++ ) { update_element ( lv, i, i + offset, TRUE ); - int twidth = textbox_get_desired_width ( WIDGET ( lv->boxes[i].textbox ) ); + int twidth = widget_get_desired_width ( lv->boxes[i].box );//textbox_get_desired_width ( WIDGET ( lv->boxes[i].textbox ) ); if ( twidth >= width ) { if ( !first ) { break; @@ -348,7 +348,7 @@ static void barview_draw ( widget *wid, cairo_t *draw ) else { for ( unsigned int i = 0; i < lv->cur_elements && width > 0 && i <= offset; i++ ) { update_element ( lv, i, offset - i, TRUE ); - int twidth = textbox_get_desired_width ( WIDGET ( lv->boxes[i].textbox ) ); + int twidth = widget_get_desired_width ( lv->boxes[i].box );// int twidth = textbox_get_desired_width ( WIDGET ( lv->boxes[i].textbox ) ); if ( twidth >= width ) { if ( !first ) { break; |