Add :fixed_page_links option #277

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@mattjbray

When set to true, the number of links displayed (including gaps) will always equal 3 (first, current_page, last) + 2 (to allow for gaps) + 2_inner_window + 2_outer_window.

3 + 2 + 2*inner_window + 2*outer_window is the maximum number of links displayed, as illustrated in the example below.

[<] [first] [outer_window] [...] [inner_window] [current_page] [inner_window] [...] [outer_window] [last] [>]

This means that the width of the pagination bar does not substantially change as a user browses through the pages.

Do you think this is an option people would be interested in?

@mattjbray mattjbray Add :fixed_page_links option
When set to true, the number of links displayed (including gaps) will
always equal 3 (first, current_page, last) + 2 (to allow for gaps) +
2*inner_window + 2*outer_window.

This means that the width of the pagination bar does not substantially
change as a user browses through pages.
0b6e5b0
@mislav
Owner
mislav commented Jan 10, 2013

I think the current feature is enough. It's not perfect (it tries to not vary the width too much), but I'd rather not change it.

@mislav mislav closed this Jan 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment