When using bootstrap 4, I want my field to always expand downwards and never upwards, even when half the screen is taken up by the form's select element.
How can I achieve this effect? I have tried using data-dropup-auto="false"
but it didn't work.
The desired layout:
https://i.sstatic.net/sVR3H.jpg
Unexpected behavior:
https://i.sstatic.net/RQASV.jpg
Here is an example of my form:
<!-- form -->
<tr>
<th></th>
<td>
<select name="city" class="form-control bg-white text-dark" data-dropup-auto="false" id="id_city">
<option value="" selected>Choose your city...</option>
<option value="1">Chorzów (3)</option>
<option value="2">Katowice (3)</option>
<option value="3">Diffrent (4)</option>
<option value="4">Mallorcowo (3)</option>
<option value="5">Milaberalinto (4)</option>
<option value="6">Kalineskow (2)</option>
</select>
</td>
</tr>
<!-- end form -->