fix on resize for mconfdialog
This commit is contained in:
@@ -311,15 +311,25 @@ end
|
|||||||
|
|
||||||
-- on resize
|
-- on resize
|
||||||
function mconfdialog:on_resize()
|
function mconfdialog:on_resize()
|
||||||
self:helpdialog():bounds_set(self:bounds())
|
if self._HELPDIALOG then
|
||||||
self:resultdialog():bounds_set(self:bounds())
|
self:helpdialog():bounds_set(self:bounds())
|
||||||
self:inputdialog():bounds_set(rect{0, 0, math.min(80, self:width() - 8), math.min(8, self:height())})
|
end
|
||||||
self:choicedialog():bounds_set(rect{0, 0, math.min(80, self:width() - 8), math.min(20, self:height())})
|
if self._RESULTDIALOG then
|
||||||
self:searchdialog():bounds_set(rect{0, 0, math.min(80, self:width() - 8), math.min(8, self:height())})
|
self:resultdialog():bounds_set(self:bounds())
|
||||||
self:center(self:resultdialog(), {centerx = true, centery = true})
|
self:center(self:resultdialog(), {centerx = true, centery = true})
|
||||||
self:center(self:inputdialog(), {centerx = true, centery = true})
|
end
|
||||||
self:center(self:choicedialog(), {centerx = true, centery = true})
|
if self._INPUTDIALOG then
|
||||||
self:center(self:searchdialog(), {centerx = true, centery = true})
|
self:inputdialog():bounds_set(rect{0, 0, math.min(80, self:width() - 8), math.min(8, self:height())})
|
||||||
|
self:center(self:inputdialog(), {centerx = true, centery = true})
|
||||||
|
end
|
||||||
|
if self._CHOICEDIALOG then
|
||||||
|
self:choicedialog():bounds_set(rect{0, 0, math.min(80, self:width() - 8), math.min(20, self:height())})
|
||||||
|
self:center(self:choicedialog(), {centerx = true, centery = true})
|
||||||
|
end
|
||||||
|
if self._SEARCHDIALOG then
|
||||||
|
self:searchdialog():bounds_set(rect{0, 0, math.min(80, self:width() - 8), math.min(8, self:height())})
|
||||||
|
self:center(self:searchdialog(), {centerx = true, centery = true})
|
||||||
|
end
|
||||||
boxdialog.on_resize(self)
|
boxdialog.on_resize(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user