Skip to content

Commit

Permalink
Merge pull request #779 from finos/jl-fixes
Browse files Browse the repository at this point in the history
Fixes jupyterlab plugin regressions
  • Loading branch information
texodus authored Oct 24, 2019
2 parents bfbda9c + d5dfac7 commit 7f02f09
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/perspective-jupyterlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This extension allows in-lining perspective based charts in jupyterlab notebooks
### From npm

```bash
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install @finos/perspective-jupyterlab
```

Expand Down
10 changes: 10 additions & 0 deletions packages/perspective-jupyterlab/src/less/index.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "~@finos/perspective-viewer/src/less/variables.less";

div.PSPContainer,
div.PSPContainer-dark {
overflow: auto;
Expand All @@ -8,6 +10,14 @@ div.PSPContainer-dark {
flex: 1;
}

div.PSPContainer {
@import "~@finos/perspective-viewer/src/themes/material.less";
}

div.PSPContainer-dark {
@import "~@finos/perspective-viewer/src/themes/material.dark.less";
}

div.PSPContainer perspective-viewer,
div.PSPContainer-dark perspective-viewer {
display: block;
Expand Down
2 changes: 2 additions & 0 deletions packages/perspective-jupyterlab/src/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ export * from "./widget";
/* css */
import "!!style-loader!css-loader!less-loader!../less/index.less";

import "@finos/perspective-viewer-hypergrid";
import "@finos/perspective-viewer-highcharts";
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function setPSP(payload, force = false) {
) {
this.grid.sbVScroller.index = 0;
this.grid.behavior.dataModel.data = payload.rows;
this.grid.behavior.dataModel._data_window = undefined;
} else {
this.grid.sbVScroller.index = 0;
this.grid.sbHScroller.index = 0;
Expand Down

0 comments on commit 7f02f09

Please sign in to comment.