diff --git a/css/app.css b/css/app.css
index acd0140..cfeeeb8 100644
--- a/css/app.css
+++ b/css/app.css
@@ -325,6 +325,7 @@ ul {
}
#portfolioChart {
max-height: 480px;
+ max-width: 100%;
}
/*Scrollbar*/
diff --git a/js/app_common.js b/js/app_common.js
index 4d7da5f..c1ba17a 100644
--- a/js/app_common.js
+++ b/js/app_common.js
@@ -169,9 +169,11 @@ function initData() {
ul = document.getElementById("prices");
ulPortfolio = document.getElementById("portfolio-list");
li = ul.getElementsByTagName('li');
+ liPortfolio = ulPortfolio.getElementsByTagName('li');
// Loop through all list items
for (i = 0; i < li.length; i++) {
li[i].setAttribute("sortorder", i);
+
var elementID = li[i].id;
//alert(elementID);
settings.set(elementID, { // coin-BTC
@@ -350,6 +352,8 @@ function updateData() {
},
options: {
animation : false,
+ responsive: false,
+ maintainAspectRatio: true,
legend : {
position: 'bottom'
}
@@ -404,6 +408,7 @@ for (let key of Object.keys(portfolio_list)) {
}
else {
inputValue = '0';
+ inputValue = settings.set('quantity.'+[coin], '0');
}
span.innerHTML = '' + coin + ' ';
diff --git a/package.json b/package.json
index de92338..276b887 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "crypto-price-widget",
"productName": "Crypto Price Widget",
- "version": "1.0.0",
+ "version": "1.0.1",
"description": "A cross-platform app for tracking Crypto prices",
"main": "main.js",
"scripts": {