cm-chessboard 8.5.3 → 8.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "8.5.3",
3
+ "version": "8.5.4",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -120,8 +120,8 @@ export class ChessboardView {
120
120
  }
121
121
 
122
122
  handleResize() {
123
- this.container.style.width = Math.floor(this.chessboard.context.clientWidth) + "px"
124
- this.container.style.height = Math.floor(this.chessboard.context.clientWidth * this.chessboard.props.style.aspectRatio) + "px"
123
+ this.container.style.width = (this.chessboard.context.clientWidth) + "px"
124
+ this.container.style.height = (this.chessboard.context.clientWidth * this.chessboard.props.style.aspectRatio) + "px"
125
125
  if (this.container.clientWidth !== this.width || this.container.clientHeight !== this.height) {
126
126
  this.updateMetrics()
127
127
  this.redrawBoard()