Added the code to update the headerHeight, tpsHeight and lineMultiplier variables after the size changes