Auto Resizing fix
Forgot to move code for term_resize events to customEventHandler..
This commit is contained in:
@@ -706,12 +706,10 @@ return function(name, parent)
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
eventHandler = function(self, event, p1, p2, p3, p4)
|
customEventHandler = function(self, event, ...)
|
||||||
base.eventHandler(self, event, p1, p2, p3, p4)
|
base.customEventHandler(self, event, ...)
|
||||||
if (curProcess == nil) then
|
log(event)
|
||||||
return
|
if(event=="basalt_resize")then
|
||||||
end
|
|
||||||
if(event=="dynamicValueEvent")then
|
|
||||||
local w, h = pWindow.getSize()
|
local w, h = pWindow.getSize()
|
||||||
local pW, pH = self:getSize()
|
local pW, pH = self:getSize()
|
||||||
if(w~=pW)or(h~=pH)then
|
if(w~=pW)or(h~=pH)then
|
||||||
@@ -723,6 +721,13 @@ return function(name, parent)
|
|||||||
pWindow.basalt_reposition(self:getAnchorPosition())
|
pWindow.basalt_reposition(self:getAnchorPosition())
|
||||||
|
|
||||||
end
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
|
eventHandler = function(self, event, p1, p2, p3, p4)
|
||||||
|
base.eventHandler(self, event, p1, p2, p3, p4)
|
||||||
|
if (curProcess == nil) then
|
||||||
|
return
|
||||||
|
end
|
||||||
if not (curProcess:isDead()) then
|
if not (curProcess:isDead()) then
|
||||||
if not (paused) then
|
if not (paused) then
|
||||||
if(event ~= "terminate") then
|
if(event ~= "terminate") then
|
||||||
|
|||||||
Reference in New Issue
Block a user