We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 294bf74 commit 33fb030Copy full SHA for 33fb030
browser/components/MarkdownPreview.js
@@ -845,8 +845,8 @@ export default class MarkdownPreview extends React.Component {
845
846
const zoomImgWidth = img.width * magnification
847
const zoomImgHeight = img.height * magnification
848
- const zoomImgTop = document.body.clientHeight / 2 - zoomImgHeight / 2
849
- const zoomImgLeft = document.body.clientWidth / 2 - zoomImgWidth / 2
+ const zoomImgTop = (document.body.clientHeight - zoomImgHeight) / 2
+ const zoomImgLeft = (document.body.clientWidth - zoomImgWidth) / 2
850
const originalImgTop = img.y + rect.top
851
const originalImgLeft = img.x + rect.left
852
const originalImgRect = {
0 commit comments