]> git.sesse.net Git - remoteglot/commitdiff
Finally fix the issue with truncated scoresparks on mobile.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 29 Dec 2022 13:39:36 +0000 (14:39 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 29 Dec 2022 13:39:36 +0000 (14:39 +0100)
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();