title: How can I change the width of Material UI Autocomplete popover
body: <p>When using the <a href="https://material-ui.com/api/select/" rel="noreferrer">Select</a> from Material-UI, there's a prop there called 'autoWidth' which sets the width of the popover to match the width of the items inside the menu.</p>
  <p>Is there a similar option for the <a href="https://material-ui.com/components/autocomplete/" rel="noreferrer">Autocomplete</a> component?</p>
  <p>what i'm trying to achieve is that the width of the TextField is independent of the width of the menu, and the width of the menu is determined by the menu items rather than a hard-coded 'width.</p>
  <p>What I managed to find so far is an option to provide width to the 'paper' component using classes (see code below), but it's independent of the actual items' width and the position of the paper isn't adjusted to stay inside the window.</p>
  <pre><code>const styles = (theme) =&gt; ({
    paper: {
      width: &quot;450px&quot;
    }
  });
  
  function ComboBox(props) {
    return (
      &lt;Autocomplete
        id=&quot;combo-box-demo&quot;
        options={top100Films}
        classes={{
          paper: props.classes.paper
        }}
        getOptionLabel={(option) =&gt; option.title}
        style={{
          width: 300,
          paddingLeft: &quot;100px&quot;
        }}
        renderInput={(params) =&gt; (
          &lt;TextField {...params} label=&quot;Combo box&quot; variant=&quot;outlined&quot; /&gt;
        )}
      /&gt;
    );
  }
  </code></pre>
  <p><a href="https://codesandbox.io/s/material-demo-forked-7fyuw?fontsize=14&amp;hidenavigation=1&amp;theme=dark" rel="noreferrer">link to codesandbox</a></p>
  <p>What i'm trying to achieve is a similar behavior to <a href="https://codesandbox.io/s/material-demo-forked-icjhk?fontsize=14&amp;hidenavigation=1&amp;theme=dark" rel="noreferrer">this codesandbox</a> but using the Autocomplete component. Notice that width of the pop-up menu is taken from the menu items while the width of the Select component is hard-coded.</p>