diff --git a/view/frontend/templates/product/view/retailer/availability.phtml b/view/frontend/templates/product/view/retailer/availability.phtml index 15e765b..f323790 100644 --- a/view/frontend/templates/product/view/retailer/availability.phtml +++ b/view/frontend/templates/product/view/retailer/availability.phtml @@ -77,7 +77,7 @@ use Smile\RetailerOffer\Block\Catalog\Product\Retailer\Availability;
- +
diff --git a/view/frontend/web/css/source/_module.less b/view/frontend/web/css/source/_module.less index a9d3793..eb50a80 100644 --- a/view/frontend/web/css/source/_module.less +++ b/view/frontend/web/css/source/_module.less @@ -59,7 +59,8 @@ list-style-type: none; margin: 10px 0 0; padding: 0; - max-height: 420px; + max-height: 215px; + min-height: 215px; overflow-y: scroll; li.result-item { diff --git a/view/frontend/web/js/retailer/product-availability.js b/view/frontend/web/js/retailer/product-availability.js index 071415d..69d89bb 100644 --- a/view/frontend/web/js/retailer/product-availability.js +++ b/view/frontend/web/js/retailer/product-availability.js @@ -172,6 +172,20 @@ define([ this.map.refreshDisplayedMarkers(); this.displayedOffers(this.map.displayedMarkers()); }.bind(this)); + }, + + /** + * Load modal function to set moveend event on map + * + * @returns {string} + */ + loadRetailerAvailabilityModal : function () { + let self = this; + registry.get(this.name + '.map', function (map) { + this.map = map; + this.map.map.off('moveend'); + this.map.map.on('moveend', self.updateDisplayedOffers.bind(self)); + }.bind(this)); } }); });