From 3d367e7c5a819881fd7f687c1e1cf284c3ba78ba Mon Sep 17 00:00:00 2001 From: shylinux Date: Thu, 29 Sep 2022 21:22:49 +0800 Subject: [PATCH] opt some --- core/wiki/chart/label.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wiki/chart/label.go b/core/wiki/chart/label.go index b33aed2e..14f942c7 100644 --- a/core/wiki/chart/label.go +++ b/core/wiki/chart/label.go @@ -86,7 +86,7 @@ func (l *Label) Draw(m *ice.Message, x, y int) wiki.Chart { args = append(args, "stroke", m.Option("order.fg")) args = append(args, "fill", m.Option("order.fg")) } - gs.EchoTexts(TEXT, left+item.GetWidths()/2, top+item.GetHeights()/2, item.Text, args...) + gs.EchoTexts(TEXT, left+item.GetWidths()/2, top+item.GetHeights()/2+4, item.Text, args...) left += item.GetWidths() }