They are not getting enough light. Windows are over rated when it comes to light and rarely give you enough. Leggy plants are always lack of light. Ligth actually retards growth in plants. That is how they seek the sun. The side with less light grows slower. The longer side being in the dark leans the plant towards the sun.