Commit c1e3c8e7 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_xhtml_style] Set iframe size with CSS, not Javascript

parent 21682739
...@@ -26,6 +26,11 @@ input, textarea, select, button, body, div, span, fieldset { ...@@ -26,6 +26,11 @@ input, textarea, select, button, body, div, span, fieldset {
padding: 0; padding: 0;
} }
iframe {
width: 100%;
height: 50vh;
}
div.input > select, div.input > input, div.listbox select { div.input > select, div.input > input, div.listbox select {
max-width:320px; max-width:320px;
} }
......
...@@ -127,19 +127,6 @@ ...@@ -127,19 +127,6 @@
* more information like the traceback. */ * more information like the traceback. */
); );
} }
if (field_list[i].sandbox === "iframe") {
sub_element = result_list[i].element;
iframe = sub_element.querySelector('iframe');
//xxx input field
sub_element.parentNode.style.width = "100%";
sub_element.parentNode.style.height = "100%";
//xxx section div
sub_element.style.width = "100%";
sub_element.style.height = "100%";
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.allowFullscreen = true;
}
} }
return RSVP.all(promise_list); return RSVP.all(promise_list);
}); });
......
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