Title: aboutimage's Replies | WordPress.org

---

# aboutimage

  [  ](https://wordpress.org/support/users/aboutimage/)

 *   [Profile](https://wordpress.org/support/users/aboutimage/)
 *   [Topics Started](https://wordpress.org/support/users/aboutimage/topics/)
 *   [Replies Created](https://wordpress.org/support/users/aboutimage/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/aboutimage/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/aboutimage/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/aboutimage/engagements/)
 *   [Favorites](https://wordpress.org/support/users/aboutimage/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gallery PhotoBlocks] Not streching to 100%](https://wordpress.org/support/topic/not-streching-to-100/)
 *  [aboutimage](https://wordpress.org/support/users/aboutimage/)
 * (@aboutimage)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/not-streching-to-100/#post-10869811)
 * [@greentreelabs](https://wordpress.org/support/users/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)