Commit a6bb8996 authored by Thibaut Frain's avatar Thibaut Frain

adjust iframe height at gadget rendering

parent 71b14409
...@@ -3,5 +3,4 @@ iframe { ...@@ -3,5 +3,4 @@ iframe {
margin:0; margin:0;
padding:0; padding:0;
width:80%; width:80%;
height:300px;
} }
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
.then(function (all_param) { .then(function (all_param) {
i_c.empty(); i_c.empty();
i_c[0].appendChild(all_param[1].element); i_c[0].appendChild(all_param[1].element);
$('iframe').css('height', $(window).height()-200+'px');
return attachIOToEditor(all_param); return attachIOToEditor(all_param);
}) })
.fail(handleError); .fail(handleError);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment