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
When images are in list view and the slider is used to adjust the thumbnails to a custom size, that custom size is not retained when the page is reloaded after saving.
It looks like the expectation here is that all thumbnails are sized with setGridSize(), but then this is overridden for images in list view which will be sized with setListSize(). But this doesn't work because setGridSize() includes a setTimeout() which fires again after setListSize().
I think it should be okay to do eithersetGridSize()orsetListSize() based on whether list view is active.
Short description of the issue
When images are in list view and the slider is used to adjust the thumbnails to a custom size, that custom size is not retained when the page is reloaded after saving.
Related forum thread: https://processwire.com/talk/topic/17403-bug-in-default-image-grid-mode-vertical-list-verbose/
Suggestion for a possible fix
The problem is here:
It looks like the expectation here is that all thumbnails are sized with
setGridSize()
, but then this is overridden for images in list view which will be sized withsetListSize()
. But this doesn't work becausesetGridSize()
includes asetTimeout()
which fires again aftersetListSize()
.I think it should be okay to do either
setGridSize()
orsetListSize()
based on whether list view is active.Setup/Environment
The text was updated successfully, but these errors were encountered: