Editing components properties in the Experience Editor might scroll the page to the top.
To resolve the issue consider the following options:
Alternatively, for preventing the page from scrolling to the top:
var row = $sc("<a href='#!'></a>");