From 7020d65f1920215bfda0fae57690dbcfe8b4b2f8 Mon Sep 17 00:00:00 2001 From: Kazuhiro Fujieda Date: Sat, 10 Jun 2017 21:54:49 +0900 Subject: [PATCH] =?utf8?q?=E6=88=A6=E6=9E=9C=E5=A0=B1=E5=91=8A=E6=9B=B8?= =?utf8?q?=E3=81=AB=E3=82=B0=E3=83=A9=E3=83=95=E3=82=92=E8=A1=A8=E7=A4=BA?= =?utf8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- LogViewer/index.html | 6 ++--- LogViewer/tags.html | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 3 deletions(-) diff --git a/LogViewer/index.html b/LogViewer/index.html index 956a261..1c2c11d 100644 --- a/LogViewer/index.html +++ b/LogViewer/index.html @@ -70,11 +70,11 @@ var mixin = { to5am: function(tick) { return tick - tick % (3600 * 24000) - 3600 * 4000; }, + pxPerEm: Number(getComputedStyle(document.body, null).fontSize.replace(/[^\d]/g, '')), chartSize: function() { - var pxPerEm = Number($('#chart').css('fontSize').match(/(\d*(\.\d*)?)px/)[1]); return { - height: Math.max($(document).height() - 15 * pxPerEm, 400), - width: Math.max($(document).width() - 6 * pxPerEm, 800) + height: Math.max($(document).height() - 15 * this.pxPerEm, 400), + width: Math.max($(document).width() - 6 * this.pxPerEm, 800) }; } }; diff --git a/LogViewer/tags.html b/LogViewer/tags.html index 20cf2f6..29293cc 100644 --- a/LogViewer/tags.html +++ b/LogViewer/tags.html @@ -658,6 +658,8 @@ $(window).resize(function() { self.timer = setTimeout(function() { if (self.mainTabs[self.mainTab] === "資材グラフ") opts.observable.trigger("chartSizeChanged"); + else if (self.mainTabs[self.mainTab] === "戦果") + opts.observable.trigger("achivementChartSizeChanged"); }, 200); }); @@ -673,6 +675,7 @@ $(window).resize(function() { 日付戦果EO月毎 +
-- 2.11.0