@jupyterlab/ui-components
Advanced tools
Comparing version 4.1.5 to 4.1.6
@@ -406,4 +406,15 @@ // Copyright (c) Jupyter Development Team. | ||
else { | ||
// Insert the widget in the toolbar at axpected index if possible, otherwise | ||
// before the popup opener. This position may change when invoking the resizer | ||
// at the end of this function. | ||
const j = Math.max(0, Math.min(index, this.layout.widgets.length - 1)); | ||
status = super.insertItem(j, name, widget); | ||
if (j !== index) { | ||
// This happens if the widget has been inserted at a wrong position: | ||
// - not enough widgets in the toolbar to insert it at the expected index | ||
// - the widget at the expected index should be in the popup | ||
// In the first situation, the stored index should be changed to match a | ||
// realistic index. | ||
index = Math.max(0, Math.min(index, this._widgetPositions.size)); | ||
} | ||
} | ||
@@ -410,0 +421,0 @@ // Save the widgets position when a widget is inserted or moved. |
{ | ||
"name": "@jupyterlab/ui-components", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"description": "JupyterLab - UI components written in React", | ||
@@ -46,6 +46,6 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"@jupyter/web-components": "^0.15.2", | ||
"@jupyterlab/coreutils": "^6.1.5", | ||
"@jupyterlab/observables": "^5.1.5", | ||
"@jupyterlab/rendermime-interfaces": "^3.9.5", | ||
"@jupyterlab/translation": "^4.1.5", | ||
"@jupyterlab/coreutils": "^6.1.6", | ||
"@jupyterlab/observables": "^5.1.6", | ||
"@jupyterlab/rendermime-interfaces": "^3.9.6", | ||
"@jupyterlab/translation": "^4.1.6", | ||
"@lumino/algorithm": "^2.0.1", | ||
@@ -68,3 +68,3 @@ "@lumino/commands": "^2.2.0", | ||
"devDependencies": { | ||
"@jupyterlab/testing": "^4.1.5", | ||
"@jupyterlab/testing": "^4.1.6", | ||
"@types/jest": "^29.2.0", | ||
@@ -71,0 +71,0 @@ "@types/react": "^18.0.26", |
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
925688
19819