1
Error in: Microsoft Edge
Technology used: Angular(4+)
- When it happens: Only when the screen size is small, and not it is possible to display all items of the table listing
- Table Used: Angular Material
Next, I’m doing a project with Angular(4+), where I’m using a Material Angular table.
Our scrollbar is activated when the screen is small, and when the user clicks on next items, the edge renders the next items, using the scroll set down
At first glance, the edge displays the table normally with the scroll bar and the items. When the user clicks to see the next results, since we display 10 at a time, the edge renders with the scroll down, forcing the user to have to scroll up the screen again.
Scroll is created through the following css class:
.table-container {
flex: 1;
overflow: auto;
display: flex;
flex-direction: column;
}
Code I used to solve:
/**
* This function fix report scroll position after change page listener
*/
materialScrollDownToUp() {
document.getElementById('material-scroll-detect').scrollTop = 0;
}
Then you just make use of that call where you need to, and it doesn’t get in a loop, hugs.
It’s just Edge that happens?
– Sam
@dvd yes, it’s only in microsoft edge that this happens
– Philip Developer
@DVD Beauty, I’ll try here
– Philip Developer
@dvd worked well brother, the bid was the place where set the ID bag ? I was setting in the father div, but the right place was to be put there <mat-table> </mat-table>, what a wave, but it was worth partner by the cleared there
– Philip Developer