I have been attempting to apply the flex-grow property to an element, but it does not seem to be taking effect.
Here is the script I am using:
(this.elementRef.nativeElement as HTMLElement).setAttribute(
'style',
'flex-grow:' + this.panel.width && this.panel.width.type === 1 ? '0' : '1'
);
After running the script, the final result is as follows:
<ev-panel class="ev-panel ng-star-inserted" style="0" ng-reflect-panel="[object Object]"></ev-panel>
<ev-panel class="ev-panel ng-star-inserted" style="0" ng-reflect-panel="[object Object]"></ev-panel>
<ev-panel class="ev-panel ng-star-inserted" style="1" ng-reflect-panel="[object Object]"></ev-panel>
Although the styles appear to be applied correctly, I am confused about where the flex-grow property is. Any assistance or explanation would be greatly appreciated.