title: Bootstrap select library throws error when trying to increase size of enumdropdownlistfor element
body: <p>I have a boostrap select applied to a enumdropdownfor razor element</p>
  
  <pre><code>@Html.EnumDropDownListFor(m =&gt; m.Gender, new { @class = "form-control selectpicker" })
  </code></pre>
  
  <p>If I try to increase the element by either of these two methods below the bootstrap select library throws an error.</p>
  
  <pre><code>$('.selectpicker').selectpicker('setStyle', 'input-lg', 'add'); //throws error
  $('.selectpicker').selectpicker('setStyle', 'btn-lg', 'add'); // throws error
  $('.selectpicker').selectpicker('refresh');
  </code></pre>
  
  <p>Here is the rendered html</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="btn-group bootstrap-select form-control input-lg"&gt;
    &lt;button title="Female" class="btn dropdown-toggle btn-default input-lg" aria-expanded="false" type="button" data-toggle="dropdown" data-id="Gender"&gt;&lt;span class="filter-option pull-left"&gt;Female&lt;/span&gt;&amp;nbsp;&lt;span class="caret"&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;div class="dropdown-menu open" style="overflow: hidden; min-height: 0px; max-height: 415.19px;"&gt;
      &lt;ul class="dropdown-menu inner" role="menu" style="-ms-overflow-y: auto; min-height: 0px; max-height: 403.19px;"&gt;
        &lt;li data-original-index="0"&gt;&lt;a tabindex="0" data-tokens="null"&gt;&lt;span class="text"&gt;Male&lt;/span&gt;&lt;span class="glyphicon glyphicon-ok check-mark"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="selected" data-original-index="1"&gt;&lt;a tabindex="0" data-tokens="null"&gt;&lt;span class="text"&gt;Female&lt;/span&gt;&lt;span class="glyphicon glyphicon-ok check-mark"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>P.S. it seems to work fine with a dropdownlistfor, but not a enumdropdownlistfor</p>