Flexible sizing for existing components
This commit is contained in:
@@ -841,17 +841,15 @@ class ComponentManager {
|
|||||||
setSize(content, data);
|
setSize(content, data);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(data.type === "content" ) {
|
var iframe = this.iframeForComponent(component);
|
||||||
var iframe = this.iframeForComponent(component);
|
var width = data.width;
|
||||||
var width = data.width;
|
var height = data.height;
|
||||||
var height = data.height;
|
iframe.width = width;
|
||||||
iframe.width = width;
|
iframe.height = height;
|
||||||
iframe.height = height;
|
|
||||||
|
|
||||||
var content = document.getElementById(`component-iframe-${component.uuid}`);
|
var content = document.getElementById(`component-iframe-${component.uuid}`);
|
||||||
if(content) {
|
if(content) {
|
||||||
setSize(content, data);
|
setSize(content, data);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user