Fix reload and programmatic scrolling in RTL documents