diff --git a/css/stylesheet.css b/css/stylesheet.css index a1e968381af8303f5025349b11c448acba7e3e2c..43a4a19ead9eb4f809321b2cc33e678d5f1c5b92 100644 --- a/css/stylesheet.css +++ b/css/stylesheet.css @@ -136,7 +136,7 @@ section { bottom: 50%; left: 0; right: 0; - overflow: scroll; + overflow: hidden; } .tab_container { @@ -245,7 +245,6 @@ pre { } .mtbl-cell { - padding: 3px 6px; display: table-cell; vertical-align: middle; text-align: center; diff --git a/js/module/array1d.js b/js/module/array1d.js index ca87481aa88126b587482796009dfe88d97a8620..069334b6ac6ac9179c7d73c0d6c6eb970cf0c866 100644 --- a/js/module/array1d.js +++ b/js/module/array1d.js @@ -12,7 +12,6 @@ Array1DTracer.prototype.createRandomData = function (N, min, max) { // Override Array1DTracer.prototype.setData = function (D) { - this.D = D; return Array2DTracer.prototype.setData.call(this, [D]); }; diff --git a/js/module/array2d.js b/js/module/array2d.js index 3939de09562eefcb2eccf73b31aca0b2fb25df35..36442ef49a3ecf544718b098605b1b4c4eaf2bcc 100644 --- a/js/module/array2d.js +++ b/js/module/array2d.js @@ -3,6 +3,7 @@ var $table = null; function Array2DTracer(module) { if (Tracer.call(this, module || Array2DTracer)) { initTable(); + initNavigator(this); return true; } return false; @@ -45,12 +46,18 @@ Array2DTracer.prototype.setData = function (D) { this.D = D; if (Tracer.prototype.setData.call(this, arguments)) return true; + this.viewX = this.viewY = 0; + this.paddingH = 6; + this.paddingV = 3; + this.fontSize = 16; $table.empty(); for (var i = 0; i < D.length; i++) { var $row = $('