title: jquery - postion relative to an element outside the window
body: <p>I have a table and a div and I want to positon the div relative to table cells, using position():</p>
  
  <pre><code>var td1= $('#td1');
  $("#Div1").position( { of: td1, my: 'left top', at: 'left top', offset: '0 5'} );
  </code></pre>
  
  <p>if td1 is inside the window (without horizonal scrolling), the div is placed correctly. However, if the table is wider than the window, the div is placed wrongly (pushed to the left) - position().top is correct, but position().left is such that the div will be entirely inside the window. I tried to put the table inside a div whose width is big enough (wider than the window), but I still see the same behaviour. </p>
  
  <p>Any suggestions as to how to position the div correctly also relative to an element which is outside the window?</p>