Removed the resize functionality of the module graph vc item
This commit is contained in:
parent
52f762bd5a
commit
2993278178
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -248,7 +248,7 @@ abstract class VisualConsoleItem<Props extends ItemProps> {
|
|||
* Start the resizement funtionality.
|
||||
* @param element Element to move inside its container.
|
||||
*/
|
||||
private initResizementListener(element: HTMLElement): void {
|
||||
protected initResizementListener(element: HTMLElement): void {
|
||||
this.removeResizement = addResizementListener(
|
||||
element,
|
||||
(width: Size["width"], height: Size["height"]) => {
|
||||
|
|
|
@ -58,6 +58,15 @@ export default class ModuleGraph extends Item<ModuleGraphProps> {
|
|||
super.resizeElement(width, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @override Item.initResizementListener. To disable the functionality.
|
||||
* Start the resizement funtionality.
|
||||
* @param element Element to move inside its container.
|
||||
*/
|
||||
protected initResizementListener(): void {
|
||||
// No-Op. Disable the resizement functionality for this item.
|
||||
}
|
||||
|
||||
protected createDomElement(): HTMLElement {
|
||||
const element = document.createElement("div");
|
||||
element.className = "module-graph";
|
||||
|
|
Loading…
Reference in New Issue