]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
Finally fix the issue with truncated scoresparks on mobile.
[remoteglot] / www / js / remoteglot.js
index f65dd98ed038240e06abd04f6ee40ebc6288d54a..de1bb1652c3960bde41bcac5ffea08a8476817f3 100644 (file)
@@ -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();