fix issue with background images on first vertical sldie
This commit is contained in:
parent
9f0224adf9
commit
9873839a50
|
@ -2332,8 +2332,8 @@
|
||||||
if( background.hasAttribute( 'data-loaded' ) === false ) {
|
if( background.hasAttribute( 'data-loaded' ) === false ) {
|
||||||
background.setAttribute( 'data-loaded', 'true' );
|
background.setAttribute( 'data-loaded', 'true' );
|
||||||
|
|
||||||
var backgroundImage = slide.getAttribute( 'data-background-image' );
|
var backgroundImage = slide.getAttribute( 'data-background-image' ),
|
||||||
var backgroundVideo = slide.getAttribute( 'data-background-video' );
|
backgroundVideo = slide.getAttribute( 'data-background-video' );
|
||||||
|
|
||||||
// Images
|
// Images
|
||||||
if( backgroundImage ) {
|
if( backgroundImage ) {
|
||||||
|
@ -2673,7 +2673,7 @@
|
||||||
h = Math.max( horizontalSlides.indexOf( slideh ), 0 );
|
h = Math.max( horizontalSlides.indexOf( slideh ), 0 );
|
||||||
|
|
||||||
// Assume we're not vertical
|
// Assume we're not vertical
|
||||||
v = 0;
|
v = undefined;
|
||||||
|
|
||||||
// If this is a vertical slide, grab the vertical index
|
// If this is a vertical slide, grab the vertical index
|
||||||
if( isVertical ) {
|
if( isVertical ) {
|
||||||
|
|
Loading…
Reference in New Issue