0

How to fix this issue on viewing a product in magento 2? The image is set on that height and width on page load but when you select any color in the choices, the product size restores enter image description here

this is the how it looks when you selected a color... enter image description here

0

I fixed it, it seems it was a bootstrap issue, Bootstrap was forcing the product media container to be a display:flex; and the javascript needs it to be a display:block;

I added this to my CSS and this fixed it.

.page-layout-1column .product.media { display: block !important; }

1
  • not working on my case. facing same issue.
    – 55840
    Apr 18 '19 at 5:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.