title: Dropdown list width modified after removing options
body: <p>I removed all the elements of a dropdown list using a for loop and the <code>remove()</code> method, and then I added a single element the dropdown, the problem is that the width of the dropdown list has changed.</p>
  
  <p>Basically my code looks like the following:</p>
  
  <pre><code>var option = document.createElement("option");
  
  option.text = dropdown.options[dropdown.selectedIndex].text;
  
  for(i = dropdown.options.length - 1 ; i &gt;= 0 ; i--)
  {
    dropdown.remove(i);
  }
  
  dropdown.add(option);
  </code></pre>