maproulette3 icon indicating copy to clipboard operation
maproulette3 copied to clipboard

"Ghost" widget in layout

Open mvexel opened this issue 1 year ago • 2 comments

I have a "ghost" widget that I can't seem to get rid of in one of my layouts. I can resize it but it collapses right back. There's no "delete" button on it.

Here's the layout JSON: task_completion-ghostwidget-layout.json

I have a screen recording to clarify if that helps at all.

mvexel avatar Feb 14 '24 18:02 mvexel

Out of the 4 widgets in your layout it looks like it's the TagDiffWidget.

height/width/x/y for that widget from your JSON. Note 0 height value:

Screen Shot 2024-02-16 at 6 35 32 PM

~~This seems like a layout that was exported from a tag fix task, so perhaps the widget fails to render properly when imported/used with a task that doesn't have suggested tag fixes. However, I don't think the height should ever be able to be 0 either regardless of how one adjust it, so maybe that's the primary problem.~~ edit: see next comment

AndrewPhilbin avatar Feb 17 '24 02:02 AndrewPhilbin

I've confirmed that this can be reproduced simply by using the default task completion layout with a non-tag-fix challenge and editing the layout. The drag-able resize control from the zero-height Tag Fix ("TagDiff") widget will appear as you described but it can't be resized.

The Tag Fix/"TagDiff" widget is hidden when the challenge/task doesn't involve tag fixes, but is still rendered as a blank widget and placed into the grid of widgets.

Actually completely removing this from the grid so that it won't show up while editing is trickier than I thought; I broke the default task completion layout in local dev while trying the most obvious fixes, for instance. Will continue to look into a solution.

AndrewPhilbin avatar Feb 19 '24 01:02 AndrewPhilbin