fix for #9, resizing now adds lines if needed.