Removed the resize functionality of the module graph vc item

This commit is contained in:
Alejandro Gallardo Escobar 2019-06-26 11:33:45 +02:00
parent 52f762bd5a
commit 2993278178
4 changed files with 12 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

View File

@ -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"]) => {

View File

@ -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";