fit images with thumb

info's Avatar


14 Jun, 2018 04:13 PM

we have an issue when using fit with controlNavigation='thumbnails'. It seems that the thumbnails bar height is not included when calculating the image ratio.
Attached a project example with 2 html files with the same options: the only difference is thumbnails bar.
My goal is that with the bars the images fill the container perfectly as with no bar version.

Thank you for your support.

  1. Support Staff 1 Posted by Dmitry Semenov on 15 Jun, 2018 04:35 AM

    Dmitry Semenov's Avatar


    To prevent thumbnails from reducing the height of the viewport, disable thumbnails optionfitInViewport`:

    thumbs: {
      fitInViewport: false
  2. 2 Posted by info on 27 Jun, 2018 03:49 PM

    info's Avatar

    It runs perfectly!
    Thank you for your support.

  3. info closed this discussion on 27 Jun, 2018 03:49 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac