From afdb22dcfeb898e051ed360fce04152b861aa3ad Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 18 Jan 2018 22:35:15 +0800 Subject: improve bounds for view --- xmake/core/ui/window.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmake/core/ui/window.lua') 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 -- cgit v1.3.1