There is an issue with the positioning of the apply button in the filter bar. Sometimes it displays in the next row instead of alongside the other filters. How can I determine the exact position of this apply button within the HTML page?
<div class="filter-container">
<button (click)="apply() "
[ngClass]="{'a-btn--disabled': isDisable}" id ="apply"
mat-raised-button >Apply
</button>
</div>
The apply button and other filters are contained within the
<div class="filter-container">
. This is the code for my component.
const fpH = $('.apply').positionY;
console.log(fpH);
However, when I try to log console.log(fpH);
, it returns undefined
. I also attempted using paddingRight
but it too resulted in undefined
.
What steps should I take to address this issue?