pgn-viewer icon indicating copy to clipboard operation
pgn-viewer copied to clipboard

width and movesWidth combined don't work as expected

Open mliebelt opened this issue 3 years ago • 0 comments

When you combine the configuration parameters width and movesWidth, they don't have the expected effect:

  • Layout top: movesWidth is ignored completely (which may be the right decision).
  • Layout left: movesWidth works, but boardWidth is not set as width - movesWidth, so at the end, the moves may overlap some other region.

The following screenshot comes from the configuration: {pgn: pgn, layout: 'left', width: '400px', movesWidth: '200px'}

image

So the board size is computed wrong here. Some more combinations should be tested as well.

mliebelt avatar Feb 22 '22 08:02 mliebelt