- Issue created by @brianbrarian
- π·π΄Romania martonlaci
Hi,
I had problems with the stretched images too, but I was convinced that this problem was not present in versions before 2.0.
After compared the old source with the current one, the only noticeable difference was in
views-photo-grid.js
gridRow createItem function line: 125,
this.items.push(item);
was called afterthis.adjustRowHeight(item.height);
Inserting some console logs, I noticed that in each row the first image width is added twice to theusedWidth
.
Since theadjustRowHeight
recalculates the rowusedWidth
in my opinion its enough to calculate only in the other part of theif
.
This small modification solved my stretched images problem.
Attached a small patch with this modification. - πΊπΈUnited States brianbrarian
@martinlaci Thanks! Your patch in #3 works for me. Much better than the hack I was using.