Visual Console Refactor: fixed the module graph's height

Former-commit-id: 9e9bed04904c136450d0831e542bf7bcd6abab14
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-24 16:57:52 +02:00
parent 1624af9af7
commit dab4024f24
5 changed files with 15 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -46,6 +46,18 @@ export function moduleGraphPropsDecoder(
}
export default class ModuleGraph extends Item<ModuleGraphProps> {
/**
* @override Item.resizeElement.
* Resize the DOM content container.
* We need to override the resize function cause this item's height
* is larger than the configured and the graph is over the label.
* @param width
* @param height
*/
protected resizeElement(width: number): void {
super.resizeElement(width, 0);
}
protected createDomElement(): HTMLElement {
const element = document.createElement("div");
element.className = "module-graph";