title: Issue with forms using twitter typeahead and bootstrap3
body: <p>I'm trying to build a simple inline form using bootstrap 3 and with typeahead functionalities. I'm having 2 issues, and I'm not sure if they are related somehow or not. The issues are as follows:</p>
  
  <p>-- The first issue I'm having is with the size of #orig and #dest fields (1st and 2nd input fields) not fitting automatically to 100% of their grid container parent. It's as if they don't increase in size past 200px. See image: <a href="https://i.stack.imgur.com/920cw.png" rel="nofollow noreferrer">form</a>. I really don't understand what is causing this, as nowhere in my stylesheet file do I mention 200px or any other limiting setting.</p>
  
  <p>-- My second issue is also related to same aforementioned form fields, but the problem now is that when I try to resize the window, the field's ghost background remains with the same 200px in size and makes the forms appear very clumsy and stacked on each other. See image: <a href="https://i.stack.imgur.com/Dt6hE.png" rel="nofollow noreferrer">form</a>. I'm pretty sure this issue is related to typeahead, as when I don't include the link to my javascript file (which contains the typeahead functionality), this issue doesn't happen anymore.</p>
  
  <p>See code below:</p>
  
  <pre><code>&lt;div class="jumbotron text-center" id="main"&gt;
    &lt;div class="container-fluid"&gt;
      &lt;div class="row"&gt;
        &lt;div class="cl-md-12" id="box"&gt;
          &lt;div class="well well-lg" id="well-form"&gt;
            &lt;form role="form" class="form-inline" &gt; 
              &lt;div class="container"&gt;
                &lt;div class="row"&gt;
                  &lt;div class="col-sm-3" id="field1"&gt;
                    &lt;div class="form-group"&gt;
                      &lt;label class="sr-only" for="orig"&gt;Origin city or airport&lt;/label&gt;
                      &lt;input type="text" class="form-control input-lg" placeholder="From" id="orig" name="origin" value=""&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="col-sm-1" id="field2"&gt;
                     &lt;a href="#"&gt;&lt;span class="glyphicon glyphicon-resize-horizontal" id="interchange"&gt; &lt;/span&gt;&lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="col-sm-3" id="field3"&gt;
                    &lt;div class="form-group"&gt;
                      &lt;label class="sr-only" for="dest"&gt;Destination city or airport&lt;/label&gt;
                      &lt;input type="text" class="form-control input-lg" placeholder="To" id="dest" name="destination"&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="col-sm-2" id="field4"&gt;
                    &lt;div class="form-group"&gt;
                      &lt;label class="sr-only" for="date_out"&gt;Date out&lt;/label&gt;
                      &lt;input type="text" class="form-control input-lg" placeholder="--" id="date_out" name="departing"&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="col-sm-2" id="field5"&gt;
                    &lt;div class="form-group"&gt;
                      &lt;label class="sr-only" for="date_in"&gt;Date in&lt;/label&gt;
                      &lt;input type="text" class="form-control input-lg" placeholder="--" id="date_in" name="returning"&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="col-sm-1" id="field6"&gt;
                    &lt;button type="submit" class="btn btn-danger btn-md" id="submit"&gt;Search&lt;/button&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/form&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>.jumbotron {
      color: #ffffff;
      padding: 80px 25px 200px;
      margin-top: 0px;
  }
  .form-inline &gt; * {
      display: inline-block;
      justify-content: center;
  }
  #date_out, #date_in{
      background-color: #ffffff !important;
      width:100%;
  }
  #orig, #dest {
      background-color: #ffffff !important;
      max-width: 400px;
      width: 100%;
  }
  #field1, #field3, #field2, #field4, #field5, #field6{
      padding: 1px;
      margin: 0;
  }
  </code></pre>
  
  <p>Any help would be much appreciated :)</p>
  
  <p>Thanks in advance</p>