Conditional animations in context menu

I want the context menu to appear in a different position depending on which item in the list container is focused. I’ve tried using Container().Row() as a condition but it isn’t working. Does that not work within the context menu dialog?