Skip to content

Commit 5ff9bf7

Browse files
committed
MAGETWO-45130: Gallery can't be easily opened in a Full-screen mode
1 parent d361e0a commit 5ff9bf7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/web/magnifier/magnifier.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,11 @@
571571
}
572572

573573
function toggleZoomButtons($image) {
574-
var path = $image.attr("src"),
574+
var path = $image.attr('src'),
575+
isVideo = $image.parent().hasClass('fotorama-video-container'),
575576
imgSize;
576-
if (path) {
577+
578+
if (path && !isVideo) {
577579
imgSize = getImageSize(path);
578580
if ((imgSize.rh > $image.parent().height()) || (imgSize.rw > $image.parent().width())) {
579581
$('.fotorama__zoom-in').show();

0 commit comments

Comments
 (0)