fix lightbox video interface
This commit is contained in:
@@ -326,8 +326,8 @@
|
|||||||
if(self.options.fitImagesInViewport) {
|
if(self.options.fitImagesInViewport) {
|
||||||
windowWidth = $(window).width();
|
windowWidth = $(window).width();
|
||||||
windowHeight = $(window).height();
|
windowHeight = $(window).height();
|
||||||
maxVideoWidth = windowWidth - self.containerPadding.left - self.containerPadding.right - self.videoBorderWidth.left - self.videoBorderWidth.right - 20;
|
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 - 70;
|
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
|
//Check if image size is larger than maxWidth|maxHeight in settings
|
||||||
if(self.options.maxWidth && self.options.maxWidth < maxVideoWidth) maxVideoWidth = self.options.maxWidth;
|
if(self.options.maxWidth && self.options.maxWidth < maxVideoWidth) maxVideoWidth = self.options.maxWidth;
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ body.lb-disable-scrolling {
|
|||||||
|
|
||||||
//ADDED-START
|
//ADDED-START
|
||||||
.lightbox .lb-video {
|
.lightbox .lb-video {
|
||||||
border-radius: 4px;
|
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
}
|
}
|
||||||
.lightbox .lb-video-nav .lb-nav {
|
.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
Reference in New Issue
Block a user