mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
CoverBrowser: fix no content with Pathchooser in RTL UI
Really needed these :resetLayout() (as done in Menu.lua) when stuff is right aligned (otherwise, first computation of x-offset, when there was no content, being Screen.width, would stick, and would draw the content off-screen on the right - no issue noticed when left-aligned as the offsets would stay being 0 whether there is content or none).
This commit is contained in:
@@ -50,6 +50,8 @@ function CoverMenu:updateItems(select_number)
|
||||
self:_recalculateDimen()
|
||||
self.page_info:resetLayout()
|
||||
self.return_button:resetLayout()
|
||||
self.vertical_span:clear()
|
||||
self.content_group:resetLayout()
|
||||
-- default to select the first item
|
||||
if not select_number then
|
||||
select_number = 1
|
||||
|
||||
Reference in New Issue
Block a user