From e6612eefe10148ae1e9e026b22f0ff05a7114a7b Mon Sep 17 00:00:00 2001 From: poire-z Date: Thu, 27 Feb 2020 22:03:02 +0100 Subject: [PATCH] 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). --- plugins/coverbrowser.koplugin/covermenu.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/coverbrowser.koplugin/covermenu.lua b/plugins/coverbrowser.koplugin/covermenu.lua index 57c5129a2..cfa834678 100644 --- a/plugins/coverbrowser.koplugin/covermenu.lua +++ b/plugins/coverbrowser.koplugin/covermenu.lua @@ -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