ngx-pagination icon indicating copy to clipboard operation
ngx-pagination copied to clipboard

Pagination control is not displaying correctly in angular app?

Open fahadsubzwari924 opened this issue 6 years ago • 5 comments

I have an angular app in which i am implementing pagination using ngx-pagination but pagination controls is not displaying correctly.

I have html regarding pagination in my html.component.html

         `<div class="col-12 text-center">
                <pagination-controls id="hmPage" (pageChange)="crntPage = $event" directionLinks="true" autoHide="false" responsive="true" previousLabel="Back" nextLabel="Next">
                </pagination-controls>
          </div>`

pagination control are not displaying correctly. I uploaded pagination view screenshot here Please see and let me know what's the problem in there?

fahadsubzwari924 avatar Nov 20 '19 15:11 fahadsubzwari924

Without a live reproduction I cannot say exactly, but I suspect some kind of conflict caused by your existing css styles - perhaps they already have rules which match some of the selectors for the pagination controls component?

michaelbromley avatar Nov 20 '19 16:11 michaelbromley

If any classes are conflicting with ngx-paginaiton classes so how can i detect those classes?

fahadsubzwari924 avatar Nov 20 '19 17:11 fahadsubzwari924

Use your browser devtools to inspect the CSS being applied to the given element: https://developers.google.com/web/tools/chrome-devtools/css

michaelbromley avatar Nov 21 '19 08:11 michaelbromley

I have fixed the issue. My own class were conflicting. But now there is another issue. When i click on Next button to go to another page so page automatically scrolls to bottom. Do know what this issue is?

fahadsubzwari924 avatar Nov 21 '19 08:11 fahadsubzwari924

Glad you fixed the first issue. Cannot advise on the scrolling issue without seeing some code or ideally a reproduction on Stackblitz.

michaelbromley avatar Nov 21 '19 08:11 michaelbromley