summaryrefslogtreecommitdiff
path: root/xmake/core/ui/group.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-27 22:28:06 +0800
committerruki <[email protected]>2017-12-27 08:48:41 +0800
commitc2af438912e29dec6f1e8962633f339a6ab2cab7 (patch)
treeac5d5e8604cc4850de621716041a318253402d43 /xmake/core/ui/group.lua
parent663308b956fb9cedbd002e980d716818f0b5e7b2 (diff)
fix group:draw()
Diffstat (limited to 'xmake/core/ui/group.lua')
-rw-r--r--xmake/core/ui/group.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/ui/group.lua b/xmake/core/ui/group.lua
index 571064260..61ce7f8d7 100644
--- a/xmake/core/ui/group.lua
+++ b/xmake/core/ui/group.lua
@@ -40,6 +40,9 @@ function group:init(name, bounds)
-- init view
view.init(self, name, bounds)
+ -- mark as group
+ self:type_set("group")
+
-- mark as selectable
self:option_set("selectable", true)
@@ -259,7 +262,7 @@ function group:draw()
if redraw then
v:state_set("redraw", true)
end
- if v:state("visible") and v:state("redraw") then
+ if v:state("visible") and (v:state("redraw") or v:type() == "group") then
v:draw()
end
end