Fixed scroll after re-expansion

Made it responsive to changing header sizes.