Fix scroll bar position mismatch after scrollHeight update