Commit e3e08cf8 by Torkel Ödegaard

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

parent 9866e085
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
**Fixes** **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 #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) # 1.8.1 (2014-09-30)
......
...@@ -1416,7 +1416,8 @@ Licensed under the MIT license. ...@@ -1416,7 +1416,8 @@ Licensed under the MIT license.
var info = surface.getTextInfo(layer, t.label, font, null, maxWidth); 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); labelHeight = Math.max(labelHeight, info.height);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment