Skip to content

Commit

Permalink
rollback vega render PR streamlit#497 (streamlit#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhone authored Nov 11, 2019
1 parent b29da49 commit 2d11914
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 49 deletions.
11 changes: 0 additions & 11 deletions e2e/scripts/vega_update.py

This file was deleted.

36 changes: 0 additions & 36 deletions e2e/specs/vega_update.spec.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class VegaLiteChart extends React.PureComponent<PropsWithHeight, State> {
}
}

this.vegaView.runAsync()
this.vegaView.resize().runAsync()
}

/**
Expand Down Expand Up @@ -330,7 +330,11 @@ class VegaLiteChart extends React.PureComponent<PropsWithHeight, State> {

this.vegaView = view

await view.resize().runAsync()
await view.runAsync()

// Fix bug where the "..." menu button overlaps with charts where width is
// set to -1 on first load.
this.vegaView.resize().runAsync()
}
}

Expand Down

0 comments on commit 2d11914

Please sign in to comment.