Wrap ScrollPanel layout changes in if statements
Wrap ScrollPanel layout changes in if statements

These conditions are rarely true, but when they are it saves ~28ms of forced layout changes.
matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk