Drag_highlight_row misbehaving on listbox styled as boxed list separate?

When using Workbench and opening the example for Drag and Drop, changing the style of the list from “boxed-list-separate” to “boxed-list” creates a unexpected (at least for me) result: instead of highlighting the row receiving the potential drop, the entire container gets the highlight (see attached gif). Is that the expected behaviour? Would there be other changes to make to the example code to get the row to be highlighted?

highlight

I wouldn’t use the highlight row style indeed. Even outside this style it looks very broken, but especially so here, agreed.

Ideally we want rows moving around to make space for the new row (like in AdwTabBar), but that’s not possible with GtkListBox.

Thanks! Indeed that’s what I would prefer too. I was thinking of maybe doing that by changing the content of my model on the fly and maybe gray out the widget or something until it’s actually dropped but that would not be ideal… What widget shall I maybe use instead of the ListBox? I tried ListView before but it seemed overkill for my use and I’m considering a Grid or Flow instead. My use-case is to display cards similar to a Trello board (with the option to let user reorganise across columns and within one)

There’s no replacement - listview, flowbox or gridview wouldn’t work for this either.

Open an issue, we def need to fix this style - it won’t look nice but we should get rid of the extra outline at least

Done Styling "boxed-list-separate" broken when using drag_highlight_row on ListBox (#1031) · Issues · GNOME / libadwaita · GitLab !

I just noticed the new WrapBox (which I missed until recently as it was not listed on Classes — GNOME Python API). Do you think using it and implementing a D&D logic similar to the one for AdwTab could work out and be a sound approach? I think it’s something I could manage in Python …