From d6ba2d130757a967d26638702e561feb48f0178e Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 29 Dec 2022 14:39:36 +0100 Subject: [PATCH] Finally fix the issue with truncated scoresparks on mobile. --- www/js/remoteglot.js | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.2