@genesis-community/golden-layout
Advanced tools
Comparing version 2.9.0 to 2.9.1
@@ -103,3 +103,6 @@ "use strict"; | ||
if (this._configClosable) { | ||
this._closeButton = new header_button_1.HeaderButton(this, this._closeLabel, "lm_close" /* DomConstants.ClassName.Close */, () => closeEvent()); | ||
this._closeButton = new header_button_1.HeaderButton(this, this._closeLabel, "lm_close" /* DomConstants.ClassName.Close */, () => { | ||
this.layoutManager.tryDispatchEventToParent('closeButtonPressed'); | ||
closeEvent(); | ||
}); | ||
} | ||
@@ -106,0 +109,0 @@ this.processTabDropdownActiveChanged(); |
@@ -195,3 +195,2 @@ "use strict"; | ||
else { | ||
this.layoutManager.tryDispatchEventToParent('closeButtonPressed'); | ||
this._parent.removeChild(this); | ||
@@ -198,0 +197,0 @@ } |
@@ -100,3 +100,6 @@ import { UnexpectedUndefinedError } from '../errors/internal-error'; | ||
if (this._configClosable) { | ||
this._closeButton = new HeaderButton(this, this._closeLabel, "lm_close" /* DomConstants.ClassName.Close */, () => closeEvent()); | ||
this._closeButton = new HeaderButton(this, this._closeLabel, "lm_close" /* DomConstants.ClassName.Close */, () => { | ||
this.layoutManager.tryDispatchEventToParent('closeButtonPressed'); | ||
closeEvent(); | ||
}); | ||
} | ||
@@ -103,0 +106,0 @@ this.processTabDropdownActiveChanged(); |
@@ -192,3 +192,2 @@ import { AssertError, UnexpectedNullError } from '../errors/internal-error'; | ||
else { | ||
this.layoutManager.tryDispatchEventToParent('closeButtonPressed'); | ||
this._parent.removeChild(this); | ||
@@ -195,0 +194,0 @@ } |
{ | ||
"name": "@genesis-community/golden-layout", | ||
"version": "2.9.0", | ||
"version": "2.9.1", | ||
"description": "A @genesis-community fork of the GoldenLayout multi-screen javascript Layout manager", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -181,3 +181,6 @@ import { UnexpectedUndefinedError } from '../errors/internal-error'; | ||
if (this._configClosable) { | ||
this._closeButton = new HeaderButton(this, this._closeLabel, DomConstants.ClassName.Close, () => closeEvent()); | ||
this._closeButton = new HeaderButton(this, this._closeLabel, DomConstants.ClassName.Close, () => { | ||
this.layoutManager.tryDispatchEventToParent('closeButtonPressed'); | ||
closeEvent(); | ||
}); | ||
} | ||
@@ -184,0 +187,0 @@ |
@@ -263,3 +263,2 @@ import { ResolvedItemConfig } from '../config/resolved-config' | ||
} else { | ||
this.layoutManager.tryDispatchEventToParent('closeButtonPressed'); | ||
this._parent.removeChild(this); | ||
@@ -266,0 +265,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2069440
34889