From 9474d72491a24b2b614a0ea0be36b736642777b8 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sat, 19 Sep 2015 17:52:58 -0400 Subject: [PATCH] Revert "Fix resize problems when charts are initially hidden" --- gulpfile.js | 1 - package.json | 1 - samples/bar.html | 21 +------ src/charts/Chart.Doughnut.js | 1 - src/charts/Chart.PolarArea.js | 1 - src/charts/Chart.Radar.js | 5 -- src/controllers/controller.doughnut.js | 4 +- src/controllers/controller.polarArea.js | 4 +- src/core/core.controller.js | 22 +++---- src/core/core.helpers.js | 77 +++++-------------------- src/core/core.js | 43 +++++++------- src/core/core.responsive.js | 29 ++++++++++ src/core/core.scale.js | 48 --------------- 13 files changed, 81 insertions(+), 176 deletions(-) create mode 100644 src/core/core.responsive.js diff --git a/gulpfile.js b/gulpfile.js index 4115ab8a3..09ce81eff 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -34,7 +34,6 @@ var srcFiles = [ './src/elements/**', './src/charts/**', './node_modules/color/dist/color.min.js', - './node_modules/javascript-detect-element-resize/detect-element-resize.js', './node_modules/moment/min/moment.min.js' ]; diff --git a/package.json b/package.json index 698bca3bf..8b83a5731 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "inquirer": "^0.5.1", "jasmine": "^2.3.2", "jasmine-core": "^2.3.4", - "javascript-detect-element-resize": "git://github.com/chartjs/javascript-detect-element-resize.git", "jquery": "^2.1.4", "karma": "^0.12.37", "karma-chrome-launcher": "^0.2.0", diff --git a/samples/bar.html b/samples/bar.html index 7f1d8e7ea..eb8796ac5 100644 --- a/samples/bar.html +++ b/samples/bar.html @@ -5,15 +5,10 @@ Bar Chart - -