Closed slyapustin closed 8 years ago
maybe you have to call something else to redraw the labels?
Thanks @ornicar!
@ornicar just wonder, should updating orientation via:
ground.set({orientation: 'black'})
and
ground.set({orientation: 'white'})
also trigger coords redraw (currently not)?
yeah... it's all broken since I optimized the coords to render only once.
Ok, i use extra call ground.data.redrawCoords(color);
as quick fix for it.
Thanks again!
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 .
toggleOrientation()
method rotate the board, but keep ranks and files unchanged.