From: Steinar H. Gunderson Date: Thu, 29 Dec 2022 13:39:36 +0000 (+0100) Subject: Finally fix the issue with truncated scoresparks on mobile. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=d6ba2d130757a967d26638702e561feb48f0178e Finally fix the issue with truncated scoresparks on mobile. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index f65dd98..de1bb16 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -2486,6 +2486,7 @@ function init() { update_board_highlight(); redraw_arrows(); }); + new ResizeObserver(() => update_sparkline(displayed_analysis_data || current_analysis_data)).observe(document.getElementById('scoresparkcontainer')); window.addEventListener('keyup', function(event) { if (event.which == 39) { // Left arrow. next_move();