Check Properties of:
mylayer
mychild
mygrandchild

mylayer is inline
mychild is inline
mygrandchild is inline