mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Highlights: anchored dialogs (#12810)
This commit is contained in:
@@ -339,6 +339,7 @@ function TextViewer:init(reinit)
|
||||
-- a few things before forwarding them
|
||||
"touch", "pan", "pan_release",
|
||||
},
|
||||
anchor = self.anchor,
|
||||
self.frame,
|
||||
}
|
||||
self[1] = WidgetContainer:new{
|
||||
@@ -348,6 +349,10 @@ function TextViewer:init(reinit)
|
||||
}
|
||||
end
|
||||
|
||||
function TextViewer:getContentSize()
|
||||
return self.movable.dimen
|
||||
end
|
||||
|
||||
function TextViewer:onCloseWidget()
|
||||
UIManager:setDirty(nil, function()
|
||||
return "partial", self.frame.dimen
|
||||
|
||||
Reference in New Issue
Block a user