Forum Replies Created

Viewing 1 replies (of 1 total)
  • @greentreelabs

    We have come across this issue as well with the latest version of the Plugin.

    We have isolated the issue to approx line 206 in the ‘photoblocks-grid-gallery/public/js/photoblocks.public.js’ file

    var size = Math.ceil(w / this.settings.columns);

    By rounding up, at some resolutions the width of the gallery is greater than the width of the container, therefor the last grid item in a row gets wrapped to the next row.

    By replacing this line with var size = (w / this.settings.columns); (removing the Ceil function) it fixes the issue.

    I believe the rounding would have been put in place to give nice whole numbers for the width of each grid element, however virtually all modern browsers can easily handle widths specified such as 250.5px etc.

    Hopefully this helps with anyone who runs into the same issue.

Viewing 1 replies (of 1 total)