- fix the label width on some widgets (#223)

This commit is contained in:
Serhiy Mytrovtsiy
2020-12-11 19:04:59 +01:00
parent 6b36d3e977
commit b1a048585d
2 changed files with 2 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ public class BarChart: Widget {
]
let letterHeight = self.frame.height / 3
let letterWidth: CGFloat = 5.0
let letterWidth: CGFloat = 6.0
var yMargin: CGFloat = 0
for char in String(self.title.prefix(3)).uppercased().reversed() {

View File

@@ -138,7 +138,7 @@ public class LineChart: Widget {
]
let letterHeight = self.frame.height / 3
let letterWidth: CGFloat = 5.0
let letterWidth: CGFloat = 6.0
var yMargin: CGFloat = 0
for char in String(self.title.prefix(3)).uppercased().reversed() {