diff options
| author | ruki <[email protected]> | 2018-01-12 22:33:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-12 09:21:41 +0800 |
| commit | 31f736c3440041b3ac060cd4519807d82a4d0e19 (patch) | |
| tree | b35e4253e181db2af318e18b698bab285aa5ba8c | |
| parent | c1ab5da128236923242317a445c8830b50e7451c (diff) | |
improve label
| -rw-r--r-- | xmake/core/ui/label.lua | 1 |
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 |
