You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that it works as expected. You are saying: show me 5 pages and rotate. We do display 1 and 12 always. Dropping ellipsis between 1 and 2 would mean that all of the sudden we would be displaying 6 pages instead of 5.
I understand that it might look odd but I'm not sure it will be easy to come up with another consistent behaviour. We could:
stop showing 1 and 12
stop showing elipsis when there is continuity (then again, we are not respecting 5 pages).
Also you can drop [rotate]="true".
All in all it is a corner case and I'm not sure what would be the best way of changing it (not even sure if we want to change it at all). @maxokorokov WDYT?
Well yes, it is kinda working as expected for now, because we didn't take much time discussing corner cases. @pkozlowski-opensource, both your bullet points are implemented in the ui-bootstrap though:
there is a boundary-links-numbers option in the ui bootstrap to toggle 1 and 12
5 page rotation is not respected
Dropping boundary number looks strange to me personally: ... 2 3 [4] 5 6 ... 12
So If we want to do something with it, I would probably just drop the ellipsis:
Bug description: Ellipsis showed between the first and the second page when visiting the fourth page
Link to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/OTUONXeZSAEN0HRztpwb?p=preview
Click on the fourth page.
Version of Angular, ng-bootstrap, and Bootstrap:
Angular: 2.0.0
ng-bootstrap: 1.0.0-alpha.15
Bootstrap: 4.0.0-alpha.5
The text was updated successfully, but these errors were encountered: