From 31f736c3440041b3ac060cd4519807d82a4d0e19 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 12 Jan 2018 22:33:36 +0800 Subject: improve label --- xmake/core/ui/label.lua | 1 - 1 file changed, 1 deletion(-) 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 -- cgit v1.3.1