Skip to content

Commit

Permalink
Issue 807 (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
billhails authored Nov 30, 2021
1 parent 8dfdf00 commit af3118d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Goban.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class Goban extends Component {
let {maxWidth, maxHeight} = this.state

setTimeout(() => {
let {offsetWidth: width, offsetHeight: height} = this.element
let {width, height} = this.element.getBoundingClientRect()

let left = Math.round((maxWidth - width) / 2)
let top = Math.round((maxHeight - height) / 2)
Expand Down

0 comments on commit af3118d

Please sign in to comment.