This may be reason for the random issues. One thing to experiment with would be to change AbstractDelegate from BackgroundItem to ListItem and instead of defining implicitHeight in it, we would define contentHeight. That's closer to how context menu should be defined.