Fix scroll bar position mismatch after scrollHeight change