Fix Gallery 'Stretch to Fit' on sites with multifile posting.
This commit is contained in:
parent
8434f13232
commit
1f2e25b3a2
@ -341,7 +341,7 @@ Gallery =
|
|||||||
{current, frame} = Gallery.nodes
|
{current, frame} = Gallery.nodes
|
||||||
{style} = current
|
{style} = current
|
||||||
|
|
||||||
if Conf['Stretch to Fit'] and (dim = g.posts.get(current.dataset.post)?.file.dimensions)
|
if Conf['Stretch to Fit'] and (dim = g.posts.get(current.dataset.post)?.files[+current.dataset.file].dimensions)
|
||||||
[width, height] = dim.split 'x'
|
[width, height] = dim.split 'x'
|
||||||
containerWidth = frame.clientWidth
|
containerWidth = frame.clientWidth
|
||||||
containerHeight = doc.clientHeight - 25
|
containerHeight = doc.clientHeight - 25
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user