Rename var for clarity
parent
fec85ba86a
commit
3eb8482413
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue