ayHaru 4 rokov pred
rodič
commit
59b4094d31

+ 4 - 4
admin/templates/default/provider.successful.php

@@ -93,11 +93,11 @@
         $("#Iframe").load(function(){
             // $(this).css("min-height", '900px')
             // $(this).css("min-width", '1650px')
-            var iframeHeight = $(this).contents().find("html").height();
-            var iframeWidth = $(this).contents().find("html").width();
+            var iframeHeight = $(this).contents().find("html").scrollHeight();
+            var iframeWidth = $(this).contents().find("html").scrollWidth();
             $(this).attr("height",iframeHeight) 
-            // $(this).attr("width",iframeWidth) 
-            console.log('iframeHeight', iframeHeight, iframeWidth, $(this).contents().find("html"));
+            $(this).attr("width",iframeWidth) 
+            // console.log('iframeHeight', iframeHeight, iframeWidth);
         });
         $('#timeSelect').change(function () {
             let val = $(this).val()