mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
List highlights span entire widget width
This commit is contained in:
@@ -50,5 +50,10 @@ func (widget *Widget) formattedItemLine(item *wtf.ChecklistItem, selectedItem *w
|
||||
tview.Escape(item.Text),
|
||||
)
|
||||
|
||||
_, _, w, _ := widget.View.GetInnerRect()
|
||||
if w > maxLen {
|
||||
maxLen = w
|
||||
}
|
||||
|
||||
return str + wtf.PadRow((checkWidth+len(item.Text)), (checkWidth+maxLen+1)) + "\n"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user