Skip to content

Commit

Permalink
Fix flicker in kepler.gl examples (uber-archive#64)
Browse files Browse the repository at this point in the history
* Revert "disable demo window from mvoing around"

This reverts commit e80d5b0.

* fix the minimum height of the kepler demos
  • Loading branch information
chrisirhc authored May 30, 2018
1 parent 7f5e13f commit d616d8c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/demos/kepler.gl/0-starting-code/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const MAPBOX_TOKEN = process.env.MapboxAccessToken; // eslint-disable-line
class App extends Component {
render() {
return (
<div style={{position: 'absolute', width: '100%', height: '100%'}}>
<div style={{position: 'absolute', width: '100%', height: '100%', minHeight: '70vh'}}>
<h2>Kepler.Gl Code Lab!</h2>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/demos/kepler.gl/1-basic-keplergl/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const MAPBOX_TOKEN = process.env.MapboxAccessToken; // eslint-disable-line
class App extends Component {
render() {
return (
<div style={{position: 'absolute', width: '100%', height: '100%'}}>
<div style={{position: 'absolute', width: '100%', height: '100%', minHeight: '70vh'}}>
<AutoSizer>
{({height, width}) => (
<KeplerGl
Expand Down
2 changes: 1 addition & 1 deletion src/demos/kepler.gl/2-load-data/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class App extends Component {

render() {
return (
<div style={{position: 'absolute', width: '100%', height: '100%'}}>
<div style={{position: 'absolute', width: '100%', height: '100%', minHeight: '70vh'}}>
<Button onClick={this.exportMapConfig}>Export Config</Button>
<AutoSizer>
{({height, width}) => (
Expand Down
2 changes: 1 addition & 1 deletion src/demos/kepler.gl/3-load-config/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class App extends Component {

render() {
return (
<div style={{position: 'absolute', width: '100%', height: '100%'}}>
<div style={{position: 'absolute', width: '100%', height: '100%', minHeight: '70vh'}}>
<Button onClick={this.replaceData}>Replace Data</Button>
<AutoSizer>
{({height, width}) => (
Expand Down
9 changes: 0 additions & 9 deletions src/styles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,3 @@ $font-family: 'ff-clan-web-pro';

$gradient-1: linear-gradient(to right, $primary 0%, $secondary 100%);
$gradient-2: linear-gradient(to bottom, $primary 0%, $secondary 100%);

// disable motion of demo window
.demo {
height: 70vh;
}

.demo > div:first-child {
margin-top: 0px;
}

0 comments on commit d616d8c

Please sign in to comment.