gnucash master: Multiple changes pushed
Geert Janssens
gjanssens at code.gnucash.org
Fri Dec 9 06:33:52 EST 2016
Updated via https://github.com/Gnucash/gnucash/commit/feee7ca6 (commit)
via https://github.com/Gnucash/gnucash/commit/85e9c64b (commit)
from https://github.com/Gnucash/gnucash/commit/1f30e2da (commit)
commit feee7ca6a46b6afd8970adc54d6a22d74f82d0b4
Author: Geert Janssens <janssens-geert at telenet.be>
Date: Fri Dec 9 12:33:37 2016 +0100
Add code to keep the chart dynamically resizable when exported
diff --git a/src/report/report-system/html-barchart.scm b/src/report/report-system/html-barchart.scm
index 39e543c..9284c31 100644
--- a/src/report/report-system/html-barchart.scm
+++ b/src/report/report-system/html-barchart.scm
@@ -514,6 +514,15 @@ var plot = $.jqplot('")(push chart-id)(push"', data, options);
var int_chart_width = document.getElementById(\"")(push chart-id)(push"\").getElementsByClassName(\"jqplot-zoom-canvas\")[0].width;
plot.axes.xaxis.ticks = getVisualTicks(int_chart_width);
plot.replot();
+var timer;
+$(window).resize(function () {
+ clearTimeout(timer);
+ timer = setTimeout(function () {
+ plot.replot({resetAxes: true });
+ plot.axes.xaxis.ticks = getVisualTicks(int_chart_width);
+ plot.replot();
+ }, 100);
+ });
});
function formatTooltip(str, seriesIndex, pointIndex) {
commit 85e9c64b13a3f2b4a51b1533b0b73c307c0cf3bf
Author: Geert Janssens <janssens-geert at telenet.be>
Date: Fri Dec 9 12:32:48 2016 +0100
Drop DOCTYPE header altogether.
It makes the jqplot charts behave poorly. And looking at current
websites on the net, most don't specify this header any more.
diff --git a/src/report/report-system/html-document.scm b/src/report/report-system/html-document.scm
index 0afb6a3..8af0ba7 100644
--- a/src/report/report-system/html-document.scm
+++ b/src/report/report-system/html-document.scm
@@ -158,8 +158,6 @@
;;./share/gnucash/scm/gnucash/report/taxinvoice.eguile.scm:<html>
;;./share/gnucash/scm/gnucash/report/balsheet-eg.eguile.scm:<html>
- ;; Validate against HTML4 Transitional:
- (push "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \n\"http://www.w3.org/TR/html4/loose.dtd\">")
(push "<head>\n")
(push "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n")
(if css?
Summary of changes:
src/report/report-system/html-barchart.scm | 9 +++++++++
src/report/report-system/html-document.scm | 2 --
2 files changed, 9 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list