Description of issue: Current page is not visible if maxSize is below 5
Steps to reproduce: Use pagination in a context where there are at least 5 pages. Set maxSize to 4. Go to middle pages, for instance page 4, with next page button.
Expected result: The current page number is visible no matter the current page.
Actual result: The current page number is not visible when it is in the middle (for instance 3).
Angular version: 11.0.0
ngx-pagination version: 5.1.1
Description of issue: Current page is not visible if maxSize is below 5
Steps to reproduce: Use pagination in a context where there are at least 5 pages. Set maxSize to 4. Go to middle pages, for instance page 4, with next page button.
Expected result: The current page number is visible no matter the current page.
Actual result: The current page number is not visible when it is in the middle (for instance 3).
Demo: (if possible, edit this StackBlitz demo and paste the link to your fork)
Any relevant code:
Screenshots
Current page = 4/7
maxSize = 5 :
maxSize = 4 :
Suggested solution
It may be written in the docs that maxSize cannot be below 5.