瀏覽代碼

Fix this.$elmt.clone with this.$elmt.clone(true).children

Jay Salvat 10 年之前
父節點
當前提交
8fcd6eafa8
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 3 0
      src/vegas.css
  2. 1 1
      src/vegas.js

+ 3 - 0
src/vegas.css

@@ -13,6 +13,9 @@
     bottom: 0;
     right: 0;
     overflow: hidden;
+    border: none;
+    padding: 0;
+    margin: 0;
 }
 
 .vegas-overlay {

+ 1 - 1
src/vegas.js

@@ -114,7 +114,7 @@
                         .css('padding-right',  this.$elmt.css('padding-right'));
                 }
 
-                this.$elmt.clone(true).appendTo($wrapper);
+                this.$elmt.clone(true).children().appendTo($wrapper);
                 this.elmt.innerHTML = '';
             }