Доброго всем времени суток... собственно, задача сделать адаптивную галлерею внутри карусели и вроде бы все даже работает, НО!!! OwlCarusel при изменении размера браузера считает свои размеры блока, что портит всю картину... но после перезагрузки страницы все становится на свои места... Может кто так же с бубном танцевал? Буду очень признателен за любую помощь :-)))
<div class="container">
<div class="row">
<div class="col-8 offset-2">
<div class="owl-carousel owl-theme">
<div id="gallery" class="" src="..." alt="First slide">
<a href = "img/6/big_1.jpg" data-ngThumb = "img/6/big_1.jpg" > Berlin 1 </a>
<a href = "img/6/big_2.jpg" data-ngThumb = "img/6/big_2.jpg" > Berlin 2 </a>
<a href = "img/6/big_3.jpg" data-ngThumb = "img/6/big_3.jpg" > Berlin 3 </a>
<a href = "img/6/big_4.jpg" data-ngThumb = "img/6/big_4.jpg" > Berlin 1 </a>
<a href = "img/6/big_5.jpg" data-ngThumb = "img/6/big_5.jpg" > Berlin 2 </a>
<a href = "img/6/big_6.jpg" data-ngThumb = "img/6/big_6.jpg" > Berlin 3 </a>
<a href = "img/6/big_6.jpg" data-ngThumb = "img/6/big_6.jpg" > Berlin 3 </a>
<a href = "img/6/big_1.jpg" data-ngThumb = "img/6/big_1.jpg" > Berlin 2 </a>
</div>
<div id="gallery2" class="" src="..." alt="Second slide">
<a href = "img/8/big_1.jpg" data-ngThumb = "img/8/big_1.jpg" > Berlin 1 </a>
<a href = "img/8/big_2.jpg" data-ngThumb = "img/8/big_2.jpg" > Berlin 2 </a>
<a href = "img/8/big_3.jpg" data-ngThumb = "img/8/big_3.jpg" > Berlin 3 </a>
<a href = "img/8/big_4.jpg" data-ngThumb = "img/8/big_4.jpg" > Berlin 1 </a>
<a href = "img/8/big_5.jpg" data-ngThumb = "img/8/big_5.jpg" > Berlin 2 </a>
<a href = "img/8/big_6.jpg" data-ngThumb = "img/8/big_6.jpg" > Berlin 3 </a>
<a href = "img/8/big_2.jpg" data-ngThumb = "img/8/big_2.jpg" > Berlin 2 </a>
<a href = "img/8/big_1.jpg" data-ngThumb = "img/8/big_1.jpg" > Berlin 2 </a>
</div>
</div>
</div>
</div>
</div>
$(function() {
$(".owl-carousel").owlCarousel({
nav: true,
items: 1,
autoWidth: false,
});
$("#gallery").nanogallery2({
"thumbnailHeight":200,
"thumbnailWidth": 200,
"galleryMosaic": [
{ "w": 5, "h": 3, "c": 2, "r": 1 },
{ "w": 2, "h": 2, "c": 1, "r": 2 },
{ "w": 2, "h": 2, "c": 7, "r": 2 },
{ "w": 2, "h": 2, "c": 2, "r": 4 },
{ "w": 3, "h": 4, "c": 4, "r": 4 },
{ "w": 3, "h": 4, "c": 7, "r": 4 },
{ "w": 2, "h": 2, "c": 10, "r": 5 },
{ "w": 4, "h": 2, "c": 11, "r": 6 }
],
"thumbnailGutterWidth": 4,
"thumbnailGutterHeight": 4,
"thumbnailBorderHorizontal": 0,
"thumbnailBorderVertical": 0,
"galleryMaxRows": 1,
"thumbnailLabel": { "display" : false }
});
$("#gallery2").nanogallery2({
"thumbnailHeight":200,
"thumbnailWidth": 200,
"galleryMosaic": [
{ "w": 5, "h": 3, "c": 2, "r": 1 },
{ "w": 2, "h": 2, "c": 1, "r": 2 },
{ "w": 2, "h": 2, "c": 7, "r": 2 },
{ "w": 2, "h": 2, "c": 2, "r": 4 },
{ "w": 3, "h": 4, "c": 4, "r": 4 },
{ "w": 3, "h": 4, "c": 7, "r": 4 },
{ "w": 2, "h": 2, "c": 10, "r": 5 },
{ "w": 4, "h": 2, "c": 11, "r": 6 }
],
"thumbnailGutterWidth": 1,
"thumbnailGutterHeight": 1,
"thumbnailBorderHorizontal": 0,
"thumbnailBorderVertical": 0,
"galleryMaxRows": 1,
"thumbnailLabel": { "display" : false }
});
});
После изменения размера: