cm-chessboard 8.5.2 → 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.2",
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",
@@ -89,7 +89,6 @@ export class ChessboardView {
89
89
  this.svg.setAttribute("class", "cm-chessboard border-type-" + this.chessboard.props.style.borderType + " " + cssClass)
90
90
  // this.svg.setAttribute("aria-describedby", "svg-description")
91
91
  this.svg.setAttribute("role", "img")
92
- this.svg.setAttribute("style", "position: relative; top: -0.5px") // fix 1px offset
93
92
  this.updateMetrics()
94
93
  this.boardGroup = Svg.addElement(this.svg, "g", {class: "board"})
95
94
  this.coordinatesGroup = Svg.addElement(this.svg, "g", {class: "coordinates", "aria-hidden": "true"})
@@ -121,7 +120,7 @@ export class ChessboardView {
121
120
  }
122
121
 
123
122
  handleResize() {
124
- this.container.style.width = this.chessboard.context.clientWidth + "px"
123
+ this.container.style.width = (this.chessboard.context.clientWidth) + "px"
125
124
  this.container.style.height = (this.chessboard.context.clientWidth * this.chessboard.props.style.aspectRatio) + "px"
126
125
  if (this.container.clientWidth !== this.width || this.container.clientHeight !== this.height) {
127
126
  this.updateMetrics()