@jupyterlab/notebook
Advanced tools
Comparing version 0.15.1 to 0.15.2
@@ -1113,3 +1113,3 @@ "use strict"; | ||
var er = state.activeCell.inputArea.node.getBoundingClientRect(); | ||
widget.scrollToPosition(er.bottom); | ||
widget.scrollToPosition(er.bottom, 45); | ||
} | ||
@@ -1116,0 +1116,0 @@ } |
@@ -378,8 +378,15 @@ import { JSONValue } from '@phosphor/coreutils'; | ||
/** | ||
* Scroll so that the given position is visible. | ||
* Scroll so that the given position is centered. | ||
* | ||
* @param position - The vertical position in the notebook widget. | ||
* | ||
* @param threshold - An optional threshold for the scroll. Defaults to 25 | ||
* percent of the widget height. | ||
* @param threshold - An optional threshold for the scroll (0-50, defaults to | ||
* 25). | ||
* | ||
* #### Notes | ||
* If the position is within the threshold percentage of the widget height, | ||
* measured from the center of the widget, the scroll position will not be | ||
* changed. A threshold of 0 means we will always scroll so the position is | ||
* centered, and a threshold of 50 means scrolling only happens if position is | ||
* outside the current window. | ||
*/ | ||
@@ -386,0 +393,0 @@ scrollToPosition(position: number, threshold?: number): void; |
{ | ||
"name": "@jupyterlab/notebook", | ||
"version": "0.15.1", | ||
"version": "0.15.2", | ||
"description": "JupyterLab - Notebook", | ||
@@ -33,10 +33,10 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"dependencies": { | ||
"@jupyterlab/apputils": "^0.15.1", | ||
"@jupyterlab/cells": "^0.15.1", | ||
"@jupyterlab/codeeditor": "^0.15.1", | ||
"@jupyterlab/coreutils": "^1.0.3", | ||
"@jupyterlab/docregistry": "^0.15.1", | ||
"@jupyterlab/observables": "^1.0.3", | ||
"@jupyterlab/rendermime": "^0.15.1", | ||
"@jupyterlab/services": "^1.1.1", | ||
"@jupyterlab/apputils": "^0.15.2", | ||
"@jupyterlab/cells": "^0.15.2", | ||
"@jupyterlab/codeeditor": "^0.15.2", | ||
"@jupyterlab/coreutils": "^1.0.4", | ||
"@jupyterlab/docregistry": "^0.15.2", | ||
"@jupyterlab/observables": "^1.0.4", | ||
"@jupyterlab/rendermime": "^0.15.2", | ||
"@jupyterlab/services": "^1.1.2", | ||
"@phosphor/algorithm": "^1.1.2", | ||
@@ -43,0 +43,0 @@ "@phosphor/coreutils": "^1.3.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
590382
8114