Rename var for clarity

pull/10616/head
Jared Scheib 2017-05-19 17:24:45 -07:00
parent fec85ba86a
commit 3eb8482413
1 changed files with 2 additions and 3 deletions

View File

@ -128,10 +128,9 @@ export default class Dygraph extends Component {
}
// Disallow screen overflow of legend
const legendBottomExceedsScreen =
graphBottom + legendHeight > screenHeight
const legendBottomClipped = graphBottom + legendHeight > screenHeight
const legendTop = legendBottomExceedsScreen
const legendTop = legendBottomClipped
? graphHeight + 8 - legendHeight
: graphHeight + 8