JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://codeorigin.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<body style="height: 1000px;">
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
</body>
CSS
#content iframe {
height: 1000px;
}
JavaScript
alert("current scroll offset " + $(window).scrollTop());
$(window).scrollTop("200");
alert("current scroll offset " + $(window).scrollTop());
$( "#dialog" ).dialog();
/*
Move around the dialog
In IE10 && FF it jumps for the amount of the scrollOffset
In chrome it works
*/