title: Yii2. Kartik Select2 widget width
body: <p>My Select2 control is inside column with bootstrap class 'col-sm-3'. Also it is attached to form field. But width does not want to be 100% of parent column. If I make browser window smaller (after columns auto-rearangment) Select2 follows width of the parent column. Also if I specify width in px it changes the width. What could be a problem? Same story for form->field->textInput. Also I found the field width does not follow parent column width if the form is inline.</p>
  
  <pre><code>&lt;?= $form-&gt;field($model, 'categories')-&gt;widget(Select2::className(), [
                  'data' =&gt; Category::availableCategories(),
                  'model' =&gt; $model,
                  'attribute' =&gt; 'categories',
                  'theme' =&gt; Select2::THEME_KRAJEE,
                  'size' =&gt; Select2::MEDIUM,
                  'showToggleAll' =&gt; false,
                  'language' =&gt; 'en',
                  'options' =&gt; ['placeholder' =&gt; 'Select a category...', 'id' =&gt; 'myselect'],
                  'pluginOptions' =&gt; [
                      'allowClear' =&gt; true,
                      'multiple' =&gt; true,
                      'width' =&gt; '200px',
                      ],
                  ])
              ?&gt;
  </code></pre>