• lastala

    (@lastala)


    Responsive Lightbox & Gallery doesn’t work correctly since the version2.4.3. 

    I have a simple basic grid with one row and 6 columns, and before (with version 2.4.2 and earlier) it showed just right. With version 2.4.3 or newer the sixth image is pushed to another row below (i.e. the plugin creates another row and fits only 5 images in the row, and leaving empty space in the end of the original row).

    I have another page (with similar grid gallery) where I haven’t updated the plugin, and there the grid works as expected. 

    I reported this issue already over a year ago. Please, let me know a solution.

    Thanks in advance!

    • This topic was modified 8 months ago by lastala.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter lastala

    (@lastala)

    Hi,

    I found the error why the six-column gallery is drawing incorrectly. The reason is that the earlier version (2.4.2) calculated the gallery item width with more decimals (cannot remember was it 6 or more), and the latest versions calculate the width with only 2 decimals!

    So, in the case of 6 columns, the value 16.67% was interpreted too big and the last image (column) on the row was thrown to the next row. However, adding even only one decimal more (16.667% in this case) corrected the situation.

    In the case of lesser amount of columns, the issue wasn’t visible, because the values didn’t exceed the threshold: 2 columns => 50.00% (exact), 3 columns => 33.33% (=less than 100%/3), 4 columns => 25.00% (exact), 5 columns => 20% (exact).

    So the error in the Responsive Lightbox & Gallery plugin is, at least, that it calculates the width with too few decimals.

    I was able to make a CSS addition to correct the issue temporarily, but please fix the plugin.

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • The topic ‘Responsive Lightbox & Gallery doesn’t work correctly since version2.4.3.’ is closed to new replies.