To the drop down itself:
I want the content of the drop down to be loaded when expanding it (works) and I wants a default text to be shown while loading the content (works).
To the problem:
After the content has loaded the drop down content height remains the height needed for the "on load" default value. I want it to resize itself when the real content has been loaded.
<select class="form-control ng-untouched ng-pristine ng-valid" (click)="loadOrders()" style="font-size:24px; height:44px; max-width:400px;">
<option disabled selected value="" style="display:none; visibility:hidden; height:0; font-size:0;">current Order</option>
<option *ngFor="let order of orders" value="{{order}}">{{order}}</option>
<option *ngIf="!loaded" style="text-align:center" value="">loading</option>
</select>
It would be perfect to solve the problem in the view (component.html), including it into the loadOrders method would also be fine.
A new method only if necessary...
Thank you for your help! If you need more information - please ask!