Flexible sizing for existing components

This commit is contained in:
Mo Bitar
2018-02-28 18:59:57 -06:00
parent 2809223fd0
commit 51029b80b7

View File

@@ -841,17 +841,15 @@ class ComponentManager {
setSize(content, data);
}
} else {
if(data.type === "content" ) {
var iframe = this.iframeForComponent(component);
var width = data.width;
var height = data.height;
iframe.width = width;
iframe.height = height;
var iframe = this.iframeForComponent(component);
var width = data.width;
var height = data.height;
iframe.width = width;
iframe.height = height;
var content = document.getElementById(`component-iframe-${component.uuid}`);
if(content) {
setSize(content, data);
}
var content = document.getElementById(`component-iframe-${component.uuid}`);
if(content) {
setSize(content, data);
}
}