What I do in these cases is put the cursor on the unit, and see if the head goes close to the top of the "box". But I agree it can be tricky to determine, especially if the soldier seems to be on a tile with a "height" (part of a ramp, stair or hill)