List_get_item_coord has different coordinates if an item is in a JTree
I have a JTree with an item that has subtrees. I want to find out its coordinates. When the item is collapsed, list_get_item_coord returns the correct coordinates, but when it is expanded, I get the wrong coordinates. Why is this so?