]> arthur.barton.de Git - netdata.git/commitdiff
fix do double column charts on HiDPi resolutions
authorCosta Tsaousis <costa@tsaousis.gr>
Wed, 15 Feb 2017 17:56:47 +0000 (19:56 +0200)
committerCosta Tsaousis <costa@tsaousis.gr>
Wed, 15 Feb 2017 17:56:47 +0000 (19:56 +0200)
web/index.html

index 6b36663064f3d6965a7fa18eed84074b8563235f..a5bf5aaf654da62cf9ef7a03f22d8f0b72a0b352 100644 (file)
             families_idx: {},
 
             chartsPerRow: 0,
-            chartsMinWidth: 1450,
+            // chartsMinWidth: 1450,
             chartsHeight: 180
         };
 
         function chartsPerRow(total) {
             if(options.chartsPerRow === 0) {
-                var width = Math.floor(total / options.chartsMinWidth);
-                if(width === 0) width = 1;
-                return width;
+                return 1;
+                //var width = Math.floor(total / options.chartsMinWidth);
+                //if(width === 0) width = 1;
+                //return width;
             }
             else return options.chartsPerRow;
         }