Regarding Auto docking

actually my Y axis when i give more spacing instead of moving up it goes down , so what is the solution for that how to make responsive such that it does not overlap again.