[BUG #7783] Go up the parent chain for relative positioning