Skip to content

Commit 294bf74

Browse files
committed
change variable name #1448
1 parent ea5970a commit 294bf74

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

browser/components/MarkdownPreview.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,8 @@ export default class MarkdownPreview extends React.Component {
845845

846846
const zoomImgWidth = img.width * magnification
847847
const zoomImgHeight = img.height * magnification
848-
const zoomInImgTop = document.body.clientHeight / 2 - zoomImgHeight / 2
849-
const zoomInImgLeft = document.body.clientWidth / 2 - zoomImgWidth / 2
848+
const zoomImgTop = document.body.clientHeight / 2 - zoomImgHeight / 2
849+
const zoomImgLeft = document.body.clientWidth / 2 - zoomImgWidth / 2
850850
const originalImgTop = img.y + rect.top
851851
const originalImgLeft = img.x + rect.left
852852
const originalImgRect = {
@@ -856,8 +856,8 @@ export default class MarkdownPreview extends React.Component {
856856
height: `${img.height}px`
857857
}
858858
const zoomInImgRect = {
859-
top: `${baseOnWidth ? zoomInImgTop : 0}px`,
860-
left: `${baseOnWidth ? 0 : zoomInImgLeft}px`,
859+
top: `${baseOnWidth ? zoomImgTop : 0}px`,
860+
left: `${baseOnWidth ? 0 : zoomImgLeft}px`,
861861
width: `${zoomImgWidth}px`,
862862
height: `${zoomImgHeight}px`
863863
}
@@ -867,8 +867,8 @@ export default class MarkdownPreview extends React.Component {
867867
zoomImg.src = img.src
868868
zoomImg.style = `
869869
position: absolute;
870-
top: ${baseOnWidth ? zoomInImgTop : 0}px;
871-
left: ${baseOnWidth ? 0 : zoomInImgLeft}px;
870+
top: ${baseOnWidth ? zoomImgTop : 0}px;
871+
left: ${baseOnWidth ? 0 : zoomImgLeft}px;
872872
width: ${zoomImgWidth};
873873
height: ${zoomImgHeight}px;
874874
`

0 commit comments

Comments
 (0)