golden-layout
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -130,5 +130,11 @@ "use strict"; | ||
(function (GoldenLayout) { | ||
/** @internal | ||
* Veriable to hold the state whether we already checked if we are running in a sub window. | ||
* Fixes popout and creation of nested golden-layouts. | ||
*/ | ||
let subWindowChecked = false; | ||
/** @internal */ | ||
function createConfig(configOrOptionalContainer, containerElement) { | ||
const windowConfigKey = utils_1.getQueryStringParam('gl-window'); | ||
const windowConfigKey = subWindowChecked ? null : utils_1.getQueryStringParam('gl-window'); | ||
subWindowChecked = true; | ||
const isSubWindow = windowConfigKey !== null; | ||
@@ -135,0 +141,0 @@ let config; |
@@ -157,2 +157,5 @@ "use strict"; | ||
newChild.setParent(this); | ||
// newChild inherits the sizes from the old child: | ||
newChild.height = oldChild.height; | ||
newChild.width = oldChild.width; | ||
//TODO This doesn't update the config... refactor to leave item nodes untouched after creation | ||
@@ -159,0 +162,0 @@ if (newChild._parent === null) { |
@@ -54,3 +54,3 @@ "use strict"; | ||
this._nOriginalY = coordinates.y; | ||
this._oDocument.addEventListener('pointermove', this._pointerMoveEventListener, { passive: true }); | ||
this._oDocument.addEventListener('pointermove', this._pointerMoveEventListener); | ||
this._oDocument.addEventListener('pointerup', this._pointerUpEventListener, { passive: true }); | ||
@@ -71,2 +71,3 @@ this._pointerTracking = true; | ||
this.processDragMove(oEvent); | ||
oEvent.preventDefault(); | ||
} | ||
@@ -73,0 +74,0 @@ } |
@@ -126,5 +126,11 @@ import { LayoutConfig } from './config/config'; | ||
(function (GoldenLayout) { | ||
/** @internal | ||
* Veriable to hold the state whether we already checked if we are running in a sub window. | ||
* Fixes popout and creation of nested golden-layouts. | ||
*/ | ||
let subWindowChecked = false; | ||
/** @internal */ | ||
function createConfig(configOrOptionalContainer, containerElement) { | ||
const windowConfigKey = getQueryStringParam('gl-window'); | ||
const windowConfigKey = subWindowChecked ? null : getQueryStringParam('gl-window'); | ||
subWindowChecked = true; | ||
const isSubWindow = windowConfigKey !== null; | ||
@@ -131,0 +137,0 @@ let config; |
@@ -154,2 +154,5 @@ import { AssertError, UnexpectedNullError } from '../errors/internal-error'; | ||
newChild.setParent(this); | ||
// newChild inherits the sizes from the old child: | ||
newChild.height = oldChild.height; | ||
newChild.width = oldChild.width; | ||
//TODO This doesn't update the config... refactor to leave item nodes untouched after creation | ||
@@ -156,0 +159,0 @@ if (newChild._parent === null) { |
@@ -51,3 +51,3 @@ import { EventEmitter } from './event-emitter'; | ||
this._nOriginalY = coordinates.y; | ||
this._oDocument.addEventListener('pointermove', this._pointerMoveEventListener, { passive: true }); | ||
this._oDocument.addEventListener('pointermove', this._pointerMoveEventListener); | ||
this._oDocument.addEventListener('pointerup', this._pointerUpEventListener, { passive: true }); | ||
@@ -68,2 +68,3 @@ this._pointerTracking = true; | ||
this.processDragMove(oEvent); | ||
oEvent.preventDefault(); | ||
} | ||
@@ -70,0 +71,0 @@ } |
{ | ||
"name": "golden-layout", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "A multi-screen javascript Layout manager", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1450209
22399