diff --git a/html/includes/print-graphrow.inc.php b/html/includes/print-graphrow.inc.php
index 9d5c7d49eb..e1d52bb93b 100644
--- a/html/includes/print-graphrow.inc.php
+++ b/html/includes/print-graphrow.inc.php
@@ -37,13 +37,10 @@ else {
);
}//end if
-if($_SESSION['screen_width'])
-{
- if($_SESSION['screen_width'] >= 800)
- {
+if($_SESSION['screen_width']) {
+ if($_SESSION['screen_width'] >= 800) {
$graph_array['width'] = ($_SESSION['screen_width'] - 400 )/count($periods)+1;
- }else
- {
+ }else {
$graph_array['width'] = $_SESSION['screen_width'] - 155;
}
}
diff --git a/html/js/librenms.js b/html/js/librenms.js
index 71f017d242..95108fa04b 100644
--- a/html/js/librenms.js
+++ b/html/js/librenms.js
@@ -123,6 +123,7 @@ $(document).ready(function() {
});
});
+ updateResolution();
});
function submitCustomRange(frmdata) {
@@ -165,5 +166,3 @@ $(document).on("click", '.collapse-neighbors', function(event)
list.toggle();
continued.toggle();
});
-
-