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

This commit is contained in:
Torkel Ödegaard 2014-10-18 13:31:15 -04:00
parent 9866e0851b
commit e3e08cf8e7
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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);
} }