Open sanjeevgt opened 3 years ago
I just tried it out and it worked on Firefox and Chrome. Can you post what your code looks like? Otherwise there's not enough information to investigate.
Hi crisbeto
I have the same scenario like this link https://github.com/angular/components/issues/11773. I have used [panelWidth]="'auto'" on html page. <mat-autocomplete #auto="matAutocomplete" [displayWith]="displayOptionAs" [panelWidth]="'auto'">
intending to set width dynamically
it works fine in Chrome and Edge but not in Firefox.
Due to security reason unable to post code.
attached screenshot above
How are you setting the width? When you set panelWidth="auto"
, Material will set an inline style of style="width: auto"
on the element so it's possible that your value is being overwritten.
Yes when it is rendering it looks like div id="cdk-overlay-0" class="cdk-overlay-pane" style="width: auto; top: 110.383px; left: 472px;">
Hi @crisbeto Could you please guide me. Is my question is valid or not? Thanks, Sanjeev
I have referred the link https://github.com/angular/components/issues/11773 to resolve my issue. panelWidth="auto" is working fine in Chrome and Edge bot not for Firefox and IE