From f8521367d59f1b1445db903952f67cac590e2a60 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Tue, 22 Dec 2020 11:27:18 -0800 Subject: [PATCH] Fixed device power timeline when &hide=1 --- views/default.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/default.handlebars b/views/default.handlebars index e6091f79..454b0cd3 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -6467,7 +6467,7 @@ // Draw the timeline var x = '', count = 1, date = new Date(); - var totalWidth = Q('masthead').offsetWidth - (160 + 9 + 9 + 14); // Compute the total width of the power bar + var totalWidth = Q('column_l').offsetWidth - (160 + 9 + 9 + 14); // Compute the total width of the power bar date.setHours(0, 0, 0, 0); for (var i = 0; i < 7; i++) { var datavalue = '', start = date.getTime(), end = start + (1000 * 60 * 60 * 24);