From fcd1a8572e2f1c90dd424875d5358eb4059b0d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pior?= Date: Wed, 5 Sep 2018 15:10:01 +0200 Subject: [PATCH] #7743 fix typo --- js/notebook/src/plot/PlotSize.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/notebook/src/plot/PlotSize.ts b/js/notebook/src/plot/PlotSize.ts index 86b49902dc..d95e3b7d44 100644 --- a/js/notebook/src/plot/PlotSize.ts +++ b/js/notebook/src/plot/PlotSize.ts @@ -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") ); @@ -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") );