title: jquery autocomplete list does not stick with parent input element
body: <p>I'm having some difficulty adapting jqueryUI autocomplete to my site's CSS layout.</p>
  
  <p>Whenever I call the autocomplete function onto an input field, the list opens as expected. Since the input lives within a div that is of fixed height, when the user scrolls that div, the autocomplete list stays fixed.</p>
  
  <p>Has anyone encountered this and know of a workaround? This issue does not occur when the parent div is not fixed in height. </p>
  
  <p>I've made a jsfiddle mockup here: <a href="http://jsfiddle.net/NSm7f/1/" rel="noreferrer">http://jsfiddle.net/NSm7f/1/</a></p>
  
  <p>here is my sample code:</p>
  
  <pre><code>&lt;div class="root"&gt;
      &lt;div id="Header"&gt;
          &lt;div class='heading'&gt;Test&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class='box' id="Wrapper"&gt;
          &lt;div class='box' id="Leftpanel"&gt;
              &lt;p&gt;some text&lt;/p&gt;
                  &lt;h1&gt;Other stuff&lt;/h1&gt;
  
              &lt;br&gt;
              &lt;br&gt;Autocomplete box:
              &lt;input id="box1"&gt;
              &lt;p&gt;some text&lt;/p&gt;
                  &lt;h1&gt;Other stuff&lt;/h1&gt;
  
              &lt;br&gt;
              &lt;br&gt;Another autocomplete:
              &lt;input id="box2"&gt;
              &lt;p&gt;some text&lt;/p&gt;
                  &lt;h1&gt;Other stuff&lt;/h1&gt;
  
              &lt;br&gt;
              &lt;br&gt;
              &lt;p&gt;some text&lt;/p&gt;
                  &lt;h1&gt;Other stuff&lt;/h1&gt;
  
              &lt;br&gt;
              &lt;br&gt;
              &lt;p&gt;some text&lt;/p&gt;
                  &lt;h1&gt;Other stuff&lt;/h1&gt;
  
  
              &lt;br&gt;
              &lt;br&gt;
          &lt;/div&gt;
          &lt;!--Leftpanel--&gt;
          &lt;div class='box' id="Rightpanel"&gt;
              &lt;form&gt;
                  &lt;textarea rows="33" cols="45"&gt;&lt;/textarea&gt;
                  &lt;br&gt;
              &lt;/form&gt;
          &lt;/div&gt;
          &lt;!--End rightpanel--&gt;
      &lt;/div&gt;
      &lt;!--wrapper--&gt;
  &lt;/div&gt;
  &lt;!--root--&gt;
  </code></pre>
  
  <p>My JS (yes, I have jqueryUI and the default jqueryUI css loaded):</p>
  
  <pre><code> $("#box1").autocomplete({
       source: ['Skull,Nasal', 'Skull,Lacrimal', 'Skull,Inferior Nasal Concha', 'Skull,Maxiallary', 'Skull,Zygomatic', 'Skull,Temporal', 'Skull,Palatine', 'Skull,Parietal', 'Skull,Malleus', 'Skull,Incus', 'Skull,Stapes', 'Skull,Frontal', 'Skull,Ethmoid', 'Skull,Vomer', 'Skull,Sphenoid', 'Skull,Mandible', 'Skull,Occipital', 'Rib 1', 'Rib 2', 'Rib 3', 'Rib 4', 'Rib 5', 'Rib 6', 'Rib 7', 'Rib 8 ', 'Rib 9 ', 'Rib 10 ', 'Coccyx']
   });
  
   $("input#box2").autocomplete({
       source: ['Skull,Nasal', 'Skull,Lacrimal', 'Skull,Inferior Nasal Concha', 'Skull,Maxiallary', 'Skull,Zygomatic', 'Skull,Temporal', 'Skull,Palatine', 'Skull,Parietal', 'Skull,Malleus', 'Skull,Incus', 'Skull,Stapes', 'Skull,Frontal', 'Skull,Ethmoid', 'Skull,Vomer', 'Skull,Sphenoid', 'Skull,Mandible', 'Skull,Occipital', 'Rib 1', 'Rib 2', 'Rib 3', 'Rib 4', 'Rib 5', 'Rib 6', 'Rib 7', 'Rib 8 ', 'Rib 9 ', 'Rib 10 ', 'Coccyx']
   });
  </code></pre>
  
  <p>and my css:</p>
  
  <pre><code>.box {
      float: left;
  }
  #root {
      max-width: 1200px;
      margin: 0 auto;
  }
  #Wrapper {
      width: 100%;
      display: table;
  }
  #Leftpanel, #Rightpanel {
      vertical-align: top;
  }
  #Leftpanel {
      width: 57%;
      display: table-cell;
      height:750px;
      color: #B29D72;
      overflow:scroll;
      background-color: #272F44;
      -moz-border-radius: 2px;
      border-radius: 5px;
      padding: 1%;
      margin:0.5%
  }
  #Rightpanel {
      width: 37%;
      display: table-cell;
      height: 750px;
      color: #B2A283;
      background-color: #0D162C;
      -moz-border-radius: 5px;
      border-radius: 5px;
      padding: 1%;
      margin:0.5%
  }
  #Sidebar {
      width: 15%;
      background-color: #B2A283;
      color: #0D162C;
      padding:1%;
      margin:0.5%;
      -moz-border-radius: 2px;
      border-radius: 5px;
  }
  #Sidebar a:link {
      color: #FFF4CB;
  }
  #Footer {
      width: 97%;
      height: auto;
      background-color: #B2A283;
      color: #0D162C;
      padding: 1%;
      margin: 0.5%;
      -moz-border-radius: 2px;
      border-radius: 5px;
  }
  #Footer a:link {
      color: #FFF4CB;
      padding-left: 5px;
      padding-right: 5px;
  }
  #Footer A:hover {
      color: #CA9221;
  }
  #Sidebar .slide-out-div {
      padding: 20px;
      width: 250px;
      background: #ccc;
      border: 1px solid #29216d;
  }
  </code></pre>