Переглянути джерело

.vegas-container is set by css not by js

Jay Salvat 10 роки тому
батько
коміт
dd0fc522aa
2 змінених файлів з 2 додано та 3 видалено
  1. 2 0
      src/vegas.css
  2. 0 3
      src/vegas.js

+ 2 - 0
src/vegas.css

@@ -1,5 +1,6 @@
 .vegas-container {
     overflow: hidden !important;
+    position: relative;
 }
 
 .vegas-wrapper,
@@ -43,6 +44,7 @@
 
 body.vegas-container {
     overflow: auto;
+    position: static;
 }
     body.vegas-container > .vegas-timer,
     body.vegas-container > .vegas-overlay,

+ 0 - 3
src/vegas.js

@@ -146,9 +146,6 @@
             // Container
             this.$elmt.addClass('vegas-container');
             if (!isBody) {
-                if (position === 'static') {
-                    this.$elmt.css('position', 'relative');
-                }
                 this.$elmt.append($wrapper);
             }