summaryrefslogtreecommitdiff
path: root/tests/ui/hello.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/hello.lua')
-rw-r--r--tests/ui/hello.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/hello.lua b/tests/ui/hello.lua
index b24b70e70..f52d71230 100644
--- a/tests/ui/hello.lua
+++ b/tests/ui/hello.lua
@@ -43,9 +43,7 @@ function hello:init()
self:menubar():title_set("Menu Bar (Hello)")
-- add title label
- local title = "hello xmake!"
- local pos = (self:width() - #title) / 2
- self:desktop():insert(label:new("title", rect {pos, 0, pos + #title, 1}, title))
+ self:desktop():insert(label:new("title", rect {0, 0, 12, 1}, "hello xmake!"), {centerx = true})
end
-- on event