lichess-org / chessground

Mobile/Web chess UI for lichess.org
https://lichess.org
GNU General Public License v3.0
1.04k stars 261 forks source link

Changing board orientation does not redraw ranks and files #27

Closed slyapustin closed 8 years ago

slyapustin commented 8 years ago

toggleOrientation() method rotate the board, but keep ranks and files unchanged.

dsjoerg commented 8 years ago

maybe you have to call something else to redraw the labels?

slyapustin commented 7 years ago

Thanks @ornicar!

slyapustin commented 7 years ago

@ornicar just wonder, should updating orientation via: ground.set({orientation: 'black'}) and ground.set({orientation: 'white'}) also trigger coords redraw (currently not)?

ornicar commented 7 years ago

yeah... it's all broken since I optimized the coords to render only once.

slyapustin commented 7 years ago

Ok, i use extra call ground.data.redrawCoords(color); as quick fix for it. Thanks again!

dsjoerg commented 7 years ago

whoa @ornicar you are too fast! i hadnt even posted my fiddle yet! thank you & respect.

On Fri, Oct 21, 2016 at 7:31 AM, Thibault Duplessis < notifications@github.com> wrote:

Closed #27 https://github.com/ornicar/chessground/issues/27 via f8053bd https://github.com/ornicar/chessground/commit/f8053bd2aeb711100490ce988378bfd3aed1937d .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ornicar/chessground/issues/27#event-831917495, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvzqekUOf6xSv28gT0ANgjXhaGjTBwvks5q2KKNgaJpZM4Kc_Zn .