Thereās an open case for this that has been nominated for the Bug Bash by two users, but the report is only seven months old, so it looks like nobody that experienced it reported it previously.
A workaround is to use a WebStyleRenderer for every cell of the listbox, like this:
Listbox1.addrow(...)
'Create a renderer from the webstyle and some text
Var style As New WebStyle
style.Value("white-space") = "normal"
Var sr As New WebListBoxStyleRenderer(style, "this is a very long bit of text which we want to word wrap in a WebListbox cell")
lb.CellValueAt(lb.LastAddedRowIndex,0) = sr
The reason I encountered this: I just updated my Web2 project to the latest Xojo (2022R2) and I was noticing word-wrap problems in a few spots in Listboxes. Itās not clear what happened: did 2022R2 break something? Or did 2022R2 fix a bug that I was relying on? Perhaps a workaround I had for 2021 broke in 2022? Iāll have to dig into this to see why.