Open rkiko opened 3 years ago
To discuss.
LN disait que c'est impossible en fit mode car il faudrait calculer les dimensions de toutes les vignettes des pages suivantes !
What Marc said 😉
= The number if items shown per page in fit mode is not known in advance except for the current page, so we cannot compute how many pages there will be so we cannot show the page switcher.
It should be possible to come up with a reasonable heuristic (e.g assume the same number as on the current page). This would be wrong (esp if images are sorted by decreasing size for example: very few on the first pages, many more at the end) but it would give a sense of place.
That said the solution overall is probably to reduce the page switcher to
< PreviousNext > First...some dots without numbers...Last
which is enough and fits every purpose.
I understand that one can not compute the number of pages for display.
But I was puzzled and don’t know how to move to the next page?
I think the "Fit" option is useless until you enable the solution you mention, JO.
I came across this problem, because when I logged in, somehow "Fit" was set. I never used it before and I don't know why it was set as the display option. Maybe it now also is the default?
The FIT option is an excellent solution when checking a well predicted page as there is no need tos croll before validation !
Well the problem is not to move to next page, as we know which image to start from (present page last image +1). But if we move to previous page, then we have to virtually flow the images in reverse order, as we know where we end (present page first image -1) but not where we start. The present algorithm starts layout from upper left corner, a new one should start "back flowing" from bottom right one corner. Funny but not 100% trivial.
Sorry, I did not know about the way Marc uses this. That makes sense ... Cheers, Rainer.
OK so we adopt JO's solution, at least all modes will have navigation bars.
What Marc said wink
= The number if items shown per page in fit mode is not known in advance except for the current page, so we cannot compute how many pages there will be so we cannot show the page switcher.
It should be possible to come up with a reasonable heuristic (e.g assume the same number as on the current page). This would be wrong (esp if images are sorted by decreasing size for example: very few on the first pages, many more at the end) but it would give a sense of place.
That said the solution overall is probably to reduce the page switcher to
< PreviousNext > First...some dots without numbers...Last
which is enough and fits every purpose.
Hi, this is a weird behavior ... If use fit mode to show vignettes (instead of e.g. 10, 50, 100 vignettes per page), the page management at the bottom is not shown, where one can see how many pages of the chosen category in total exist. One therefore has the impression, that all images of a given category are shown.
Not sure for what the Fit should be good for, I would remove it.
Cheers, Rainer.