Просмотр исходного кода

Graph: fix for second y axis tick unit labels wrapping on the next line, Fixes #505

Torkel Ödegaard 11 лет назад
Родитель
Сommit
e3e08cf8e7
2 измененных файлов с 3 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 2 1
      src/vendor/jquery/jquery.flot.js

+ 1 - 0
CHANGELOG.md

@@ -13,6 +13,7 @@
 
 **Fixes**
 - [Issue #925](https://github.com/grafana/grafana/issues/925). Graph: bar width calculation fix for some edge cases (bars would render on top of each other)
+- [Issue #505](https://github.com/grafana/grafana/issues/505). Graph: fix for second y axis tick unit labels wrapping on the next line
 
 =======
 # 1.8.1 (2014-09-30)

+ 2 - 1
src/vendor/jquery/jquery.flot.js

@@ -1416,7 +1416,8 @@ Licensed under the MIT license.
 
                 var info = surface.getTextInfo(layer, t.label, font, null, maxWidth);
 
-                labelWidth = Math.max(labelWidth, info.width);
+                /// Grafana fix, add +1 to label width
+                labelWidth = Math.max(labelWidth, info.width + 1);
                 labelHeight = Math.max(labelHeight, info.height);
             }