diff --git a/src/components/Common/Typesetting/typesetting.js b/src/components/Common/Typesetting/typesetting.js index 853220b..a31ed75 100644 --- a/src/components/Common/Typesetting/typesetting.js +++ b/src/components/Common/Typesetting/typesetting.js @@ -213,9 +213,9 @@ const Typesetting = props => { jInnerHeight = innerWidth; jInnerWidth = innerHeight; } - if (state.selectedNode.sTypeKey === 'kaipai' || state.selectedNode.sTypeKey === 'juantong') { - jInnerHeight = innerWidth; - jInnerWidth = innerHeight; + if (state.selectedNode.sTypeKey === 'kapai' || state.selectedNode.sTypeKey === "juantong") { + jInnerHeight = innerHeight; + jInnerWidth = innerWidth; } const innerHeightCombined = isVertical @@ -225,8 +225,6 @@ const Typesetting = props => { const innerWidthCombined = isVertical ? Math.max(jInnerWidth + dFLengthOffset, jInnerWidth + dSLengthOffset) + dYBJJ : jInnerWidth * 2 + dSLengthOffset + dFLengthOffset + dYBJJ; - - const style = { width: `${outerWidth}px`, height: `${outerHeight}px`,