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?
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)
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 …