mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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.
|
* Start the resizement funtionality.
|
||||||
* @param element Element to move inside its container.
|
* @param element Element to move inside its container.
|
||||||
*/
|
*/
|
||||||
private initResizementListener(element: HTMLElement): void {
|
protected initResizementListener(element: HTMLElement): void {
|
||||||
this.removeResizement = addResizementListener(
|
this.removeResizement = addResizementListener(
|
||||||
element,
|
element,
|
||||||
(width: Size["width"], height: Size["height"]) => {
|
(width: Size["width"], height: Size["height"]) => {
|
||||||
|
@ -58,6 +58,15 @@ export default class ModuleGraph extends Item<ModuleGraphProps> {
|
|||||||
super.resizeElement(width, 0);
|
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 {
|
protected createDomElement(): HTMLElement {
|
||||||
const element = document.createElement("div");
|
const element = document.createElement("div");
|
||||||
element.className = "module-graph";
|
element.className = "module-graph";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user