소스 검색

.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);
             }