Skip to content

Commit

Permalink
Bump base (#9618)
Browse files Browse the repository at this point in the history
* Bump base (koreader/koreader-base#1534)
* And some fixups following #9617
  • Loading branch information
NiLuJe committed Oct 10, 2022
1 parent 6ac7a0c commit 68dcc4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion base
3 changes: 2 additions & 1 deletion frontend/ui/uimanager.lua
Expand Up @@ -824,7 +824,8 @@ function UIManager:sendEvent(event)
if not checked_widgets[widget] then
checked_widgets[widget] = true
-- Widget's active widgets have precedence to handle this event
-- NOTE: ReaderUI & FileManager have their registered modules referenced as such.
-- NOTE: ReaderUI & FileManager *may* optionally register their modules as such
-- (currently, they only do that for the Screenshot module).
if widget.active_widgets then
for _, active_widget in ipairs(widget.active_widgets) do
if active_widget:handleEvent(event) then
Expand Down
4 changes: 2 additions & 2 deletions frontend/ui/widget/notification.lua
Expand Up @@ -121,8 +121,8 @@ function Notification:init()
RectSpan:new{
-- have this VerticalGroup full width, to ensure centering
width = Screen:getWidth(),
-- push this frame at its y=self.num position
height = notif_height * (self.num - 1) + self.margin,
-- push this frame at its y=self._shown_idx position
height = notif_height * (self._shown_idx - 1) + self.margin,
-- (let's add a leading self.margin to get the same distance
-- from top of screen to first notification top border as
-- between borders of next notifications)
Expand Down

0 comments on commit 68dcc4f

Please sign in to comment.