summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-12 22:33:36 +0800
committerruki <[email protected]>2018-01-12 09:21:41 +0800
commit31f736c3440041b3ac060cd4519807d82a4d0e19 (patch)
treeb35e4253e181db2af318e18b698bab285aa5ba8c
parentc1ab5da128236923242317a445c8830b50e7451c (diff)
improve label
-rw-r--r--xmake/core/ui/label.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/xmake/core/ui/label.lua b/xmake/core/ui/label.lua
index f42260ee1..23395c8c3 100644
--- a/xmake/core/ui/label.lua
+++ b/xmake/core/ui/label.lua
@@ -55,7 +55,6 @@ function label:draw()
-- strip text string
local str = self:text()
if str and #str > 0 and textattr then
- str = string.sub(str, 1, self:width())
self:canvas():attr(textattr):move(0, 0):puts(str)
end
end