From 42ce038a9c71ea88f97ae6f1a53f2260a8011c6b Mon Sep 17 00:00:00 2001 From: joeuhren <46763106+joeuhren@users.noreply.github.com> Date: Fri, 25 Dec 2020 15:35:20 -0700 Subject: [PATCH] Set chart width after init to prevent issues with chart not resizing properly --- views/market.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/market.pug b/views/market.pug index 39fa178..63aec0f 100644 --- a/views/market.pug +++ b/views/market.pug @@ -111,6 +111,7 @@ block content close:%s' } }); + $('#chart').css('width', '100%'); } $(window).resize(function () { if (jqplot != null && $('#chart').is(':visible')) @@ -183,7 +184,7 @@ block content .card-header strong #{marketdata.market_name} - #{marketdata.coin}/#{marketdata.exchange} - #{settings.locale.mkt_hours} .card-body - div#chart(style='width: 100%; height: 300px;') + div#chart(style='height:300px;') .row .col-md-6.col-xs-12.cardSpacer .card.card-default.border-0.wrapper-border-0(class=theadClasses)