mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix widget closing
This commit is contained in:
@@ -579,6 +579,10 @@ function Menu:init()
|
||||
end
|
||||
end
|
||||
|
||||
function Menu:onCloseWidget()
|
||||
UIManager:setDirty(nil, "partial", self.dimen)
|
||||
end
|
||||
|
||||
function Menu:updateItems(select_number)
|
||||
local old_dimen = self.dimen and self.dimen:copy()
|
||||
-- self.layout must be updated for focusmanager
|
||||
|
||||
@@ -384,6 +384,10 @@ function TouchMenu:init()
|
||||
self:updateItems()
|
||||
end
|
||||
|
||||
function TouchMenu:onCloseWidget()
|
||||
UIManager:setDirty(nil, "partial", self.dimen)
|
||||
end
|
||||
|
||||
function TouchMenu:_recalculateDimen()
|
||||
self.dimen.w = self.width
|
||||
|
||||
|
||||
Reference in New Issue
Block a user