fix lightbox video interface

This commit is contained in:
2019-10-20 16:29:57 +02:00
parent 5478f7501f
commit 912888814a
4 changed files with 4 additions and 5 deletions

View File

@@ -326,8 +326,8 @@
if(self.options.fitImagesInViewport) {
windowWidth = $(window).width();
windowHeight = $(window).height();
maxVideoWidth = windowWidth - self.containerPadding.left - self.containerPadding.right - self.videoBorderWidth.left - self.videoBorderWidth.right - 20;
maxVideoHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.videoBorderWidth.top - self.videoBorderWidth.bottom - 70;
maxVideoWidth = windowWidth - self.containerPadding.left - self.containerPadding.right - self.videoBorderWidth.left - self.videoBorderWidth.right - self.$lightbox.find('.lb-dataContainer').outerWidth();
maxVideoHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.videoBorderWidth.top - self.videoBorderWidth.bottom;
//Check if image size is larger than maxWidth|maxHeight in settings
if(self.options.maxWidth && self.options.maxWidth < maxVideoWidth) maxVideoWidth = self.options.maxWidth;

View File

@@ -37,7 +37,6 @@ body.lb-disable-scrolling {
//ADDED-START
.lightbox .lb-video {
border-radius: 4px;
box-sizing: content-box;
}
.lightbox .lb-video-nav .lb-nav {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long