Commit 4d281109a1b0e6ba9f1dd9d1eea5216d2eb44982
1 parent
cb2f69c5
卷筒类
Showing
1 changed file
with
3 additions
and
5 deletions
src/components/Common/Typesetting/typesetting.js
| ... | ... | @@ -213,9 +213,9 @@ const Typesetting = props => { |
| 213 | 213 | jInnerHeight = innerWidth; |
| 214 | 214 | jInnerWidth = innerHeight; |
| 215 | 215 | } |
| 216 | - if (state.selectedNode.sTypeKey === 'kaipai' || state.selectedNode.sTypeKey === 'juantong') { | |
| 217 | - jInnerHeight = innerWidth; | |
| 218 | - jInnerWidth = innerHeight; | |
| 216 | + if (state.selectedNode.sTypeKey === 'kapai' || state.selectedNode.sTypeKey === "juantong") { | |
| 217 | + jInnerHeight = innerHeight; | |
| 218 | + jInnerWidth = innerWidth; | |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | const innerHeightCombined = isVertical |
| ... | ... | @@ -225,8 +225,6 @@ const Typesetting = props => { |
| 225 | 225 | const innerWidthCombined = isVertical |
| 226 | 226 | ? Math.max(jInnerWidth + dFLengthOffset, jInnerWidth + dSLengthOffset) + dYBJJ |
| 227 | 227 | : jInnerWidth * 2 + dSLengthOffset + dFLengthOffset + dYBJJ; |
| 228 | - | |
| 229 | - | |
| 230 | 228 | const style = { |
| 231 | 229 | width: `${outerWidth}px`, |
| 232 | 230 | height: `${outerHeight}px`, | ... | ... |