added align to labels

This commit is contained in:
Robert Jelic
2022-05-27 21:42:31 +02:00
parent 0348e9317d
commit 892d3496bd
3 changed files with 25 additions and 16 deletions

View File

@@ -23,6 +23,7 @@ local function getTextVerticalAlign(h, textAlign)
if (textAlign == "bottom") then
offset = h
end
if(offset<1)then offset=1 end
return offset
end