summaryrefslogtreecommitdiff
path: root/xmake/core/ui/window.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-18 22:35:15 +0800
committerruki <[email protected]>2018-01-18 09:31:31 +0800
commitafdb22dcfeb898e051ed360fce04152b861aa3ad (patch)
tree5a8f56a1a527b86b282a1bb726fe1c497c6ef04e /xmake/core/ui/window.lua
parent921a48f8332381d30c814419bfa05230155d342c (diff)
improve bounds for view
Diffstat (limited to 'xmake/core/ui/window.lua')
-rw-r--r--xmake/core/ui/window.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/ui/window.lua b/xmake/core/ui/window.lua
index 6ce486d3d..eb66eeeb3 100644
--- a/xmake/core/ui/window.lua
+++ b/xmake/core/ui/window.lua
@@ -46,6 +46,7 @@ function window:init(name, bounds, title, shadow)
if shadow then
self:insert(self:shadow())
self:frame():bounds():movee(-2, -1)
+ self:frame():invalidate(true)
end
-- insert border
@@ -78,6 +79,7 @@ function window:panel()
if not self._PANEL then
self._PANEL = panel:new("window.panel", self:frame():bounds())
self._PANEL:bounds():grow(-1, -1)
+ self._PANEL:invalidate(true)
end
return self._PANEL
end