title: Boostrap modal element offset giving zero
body: <p>To scroll to an element in my Bootstrap modal, I can check the offset of the element. There are for instance 8 div's, each with their own id (#row-1, #row-2, etc.). If I open the modal and then input the following into the console, I get the correct offset value.</p>
  
  <pre><code>$('#row-6').offset()['top'];
  </code></pre>
  
  <p>But when I <code>console.log</code> this into the code itself, after opening the modal with <code>.modal('show')</code>, I get <code>0</code> back.</p>
  
  <p>How can this difference occur? I tried all the solutions I could find on here, but all solutions gave me the same <code>0</code>.</p>
  
  <p>My problem would also be solved if I could scroll to the element in any other way with JavaScript.</p>