only do offset calculation with parents of it is a ghost (the parent has
a ghostcontainer class)