Visual Console Refactor: fixed the module graph's height
Former-commit-id: 9e9bed04904c136450d0831e542bf7bcd6abab14
This commit is contained in:
parent
1624af9af7
commit
dab4024f24
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
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue