Skip to content

Commit

Permalink
#7743 fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
piorek committed Sep 5, 2018
1 parent bc014e0 commit fcd1a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/notebook/src/plot/PlotSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class PlotSize {
const legendPosition = this.scope.stdmodel.legendPosition.position;
// Logic based on updateLegendPosition method
const isLegendPlacedHorizontaly = (
(["LEFT", "RIGTH"].indexOf(legendPosition) !== -1)
(["LEFT", "RIGHT"].indexOf(legendPosition) !== -1)
|| (["TOP", "BOTTOM"].indexOf(legendPosition) === -1 && this.scope.stdmodel.legendLayout === "VERTICAL")
);

Expand All @@ -66,7 +66,7 @@ export default class PlotSize {
const legendPosition = this.scope.stdmodel.legendPosition.position;
// Logic based on updateLegendPosition method
const isLegendPlacedHorizontaly = (
(["LEFT", "RIGTH"].indexOf(legendPosition) !== -1)
(["LEFT", "RIGHT"].indexOf(legendPosition) !== -1)
|| (["TOP", "BOTTOM"].indexOf(legendPosition) === -1 && this.scope.stdmodel.legendLayout === "VERTICAL")
);

Expand Down

0 comments on commit fcd1a85

Please sign in to comment.