Browse Source

Bug Fix: First slide disappeared in IE.

NaotoshiFujita 5 years ago
parent
commit
924ab29b54

File diff suppressed because it is too large
+ 1 - 1
dist/js/splide.min.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@splidejs/splide",
-  "version": "1.0.8",
+  "version": "1.0.9",
   "description": "Splide is a lightweight and powerful slider without any dependencies.",
   "author": "Naotoshi Fujita",
   "license": "MIT",

+ 1 - 1
src/js/components/layout/resolvers/horizontal.js

@@ -74,7 +74,7 @@ export default ( Splide, Components, options ) => {
 			const firstSlide = Elements.slides[ 0 ];
 			const width      = options.fixedWidth;
 			const height     = options.height || options.fixedHeight;
-			const position   = firstSlide.style.position;
+			const position   = firstSlide.style.position || 'static';
 
 			applyStyle( firstSlide, { position: 'absolute' } );
 

+ 1 - 1
src/js/components/layout/resolvers/vertical.js

@@ -71,7 +71,7 @@ export default ( Splide, Components, options ) => {
 			applyStyle( track, { paddingTop: unit( top ), paddingBottom: unit( bottom ) } );
 
 			const firstSlide = Elements.slides[ 0 ];
-			const position   = firstSlide.style.position;
+			const position   = firstSlide.style.position || 'static';
 			const { fixedWidth: fixedW, fixedHeight: fixedH, height } = options;
 
 			applyStyle( firstSlide, { position: 'absolute' } );

Some files were not shown because too many files changed in this diff