Lila: chessground resize or animation seems to race page load

Created on 20 May 2019  路  8Comments  路  Source: ornicar/lila

When one of the puzzles is loaded (When the loading animation is finished), the board looks like this shown in the image below

Screenshot from 2019-05-20 14-31-19

bug no scala

Most helpful comment

Thanks for the steps. It took me ~10 attempts to reproduce.

All 8 comments

Remembering that this only happens when my browser screen is small

Backboard is out of bounds in website screen.
Pieces can placeable for any resolutions but backboard isn't.
It's visual glitch :)

Is this still happening?

Is this still happening?

Yeah!

Method to reproduce (Google Chrome):

  • https://lichess.org/training/113932
  • resize window so that board + turns are displayed next to each other
  • refresh
  • make the window smaller so that the turns disappear. This need to be done before animation is finished. Of course don't move the window anymore after that because it will redraw and fix.

It may take a few tries but it was not a fluke.

I would guess it is related to animation rather than the page-load.

image

Thanks for the steps. It took me ~10 attempts to reproduce.

I tried reloading man times and it appears to be fixed by ResizeObserver (see above) as intended. Please reopen if not.

Yes I also cannot reproduce, seems fixed.
馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isaacl picture isaacl  路  4Comments

DVRazor picture DVRazor  路  3Comments

niklasf picture niklasf  路  3Comments

goggle picture goggle  路  4Comments

Cristian-A picture Cristian-A  路  3Comments