This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Nantha

  • **
  • 9 posts
Listing gallery thumnail display
« on: April 24, 2017, 02:16:41 PM »
Hi i m having problem with listing gallery thumbnail display. Please refer the attachment.
I have installed the theme and all standard plugins, not installed other third party plugins.

*

MB Themes

Re: Listing gallery thumnail display
« Reply #1 on: April 24, 2017, 06:08:29 PM »
@Nantha
Not sure what is problem, what is URL to test...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nantha

  • **
  • 9 posts
Re: Listing gallery thumnail display
« Reply #2 on: April 24, 2017, 08:30:02 PM »

*

MB Themes

Re: Listing gallery thumnail display
« Reply #3 on: April 25, 2017, 09:02:37 AM »
@Nantha
Ok, and now, what is problem?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nantha

  • **
  • 9 posts
Re: Listing gallery thumnail display
« Reply #4 on: April 25, 2017, 09:05:17 AM »
Please check the thumbnails of the image, it is not like in demo. The third image is in second row and no next / previous button.

*

MB Themes

Re: Listing gallery thumnail display
« Reply #5 on: April 25, 2017, 11:09:48 AM »
@Nantha
Ok, I was not able to reproduce issue in chrome.
Try following.

Go to file:
Code: [Select]
oc-content/themes/patricia/js/listingScroll.js
Find line:
Code: [Select]
$('#pictures .img-bar .wrap').css('width', (b_width/items)*total + 'px');
change it to:
Code: [Select]
$('#pictures .img-bar .wrap').css('width', Math.ceil((b_width/items)*total) + 'px');
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nantha

  • **
  • 9 posts
Re: Listing gallery thumnail display
« Reply #6 on: April 25, 2017, 11:48:48 AM »
Hi,

Yes no issue in chrome, but the error was when use mozila firefox.

I have tried but doesn't help.
This error happen when use 2, 3 and 4 images. no issue if we use single or more than 4 images.



*

MB Themes

Re: Listing gallery thumnail display
« Reply #7 on: April 25, 2017, 01:14:23 PM »
@Nantha
Ok, at bottom try to change following rows:
Code: [Select]
  $('#pictures .img-bar .small-img').css('width', ((100 - 1.6*items)/items)*b_width/100 + 'px');
  $('#pictures .img-bar .small-img').css('margin-left', 0.8*b_width/100 + 'px');
  $('#pictures .img-bar .small-img').css('margin-right', 0.8*b_width/100 + 'px');

to:
Code: [Select]
  $('#pictures .img-bar .small-img').css('width', Math.floor(((100 - 1.6*items)/items)*b_width/100) + 'px');
  $('#pictures .img-bar .small-img').css('margin-left', Math.floor(0.8*b_width/100) + 'px');
  $('#pictures .img-bar .small-img').css('margin-right', Math.floor(0.8*b_width/100) + 'px');
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on April 26, 2017, 08:48:35 AM
*

Nantha

  • **
  • 9 posts
Re: Listing gallery thumnail display
« Reply #8 on: April 25, 2017, 06:30:22 PM »
Perfect. It fixed the error. TQ

Following are the final code i replace.

  $('#pictures .img-bar .small-img').css('width', Math.floor(((100 - 1.6*items)/items)*b_width/100) + 'px');
  $('#pictures .img-bar .small-img').css('margin-left', Math.floor(0.8*b_width/100) + 'px');
  $('#pictures .img-bar .small-img').css('margin-right', Math.floor(0.8*b_width/100) + 'px');
  $('#pictures .img-bar .wrap').css('width', ((b_width/items)*total) + 'px');