From 67693367b953ac951790c52626e88d99bac23860 Mon Sep 17 00:00:00 2001 From: chrox Date: Tue, 25 Nov 2014 16:28:27 +0800 Subject: [PATCH 1/2] init width and height of filechooser widget during init so that everytime a filechooser is inited right dimension size is used. --- frontend/ui/widget/filechooser.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/ui/widget/filechooser.lua b/frontend/ui/widget/filechooser.lua index cdd2a0939..e0f663def 100644 --- a/frontend/ui/widget/filechooser.lua +++ b/frontend/ui/widget/filechooser.lua @@ -17,8 +17,6 @@ local function strcoll(str1, str2) end local FileChooser = Menu:extend{ - height = Screen:getHeight(), - width = Screen:getWidth(), no_title = true, path = lfs.currentdir(), parent = nil, @@ -32,6 +30,8 @@ local FileChooser = Menu:extend{ } function FileChooser:init() + self.width = Screen:getWidth() + self.height = Screen:getHeight() -- common dir filter self.dir_filter = function(dirname) for _, pattern in ipairs(self.exclude_dirs) do From 8771ee44ac6fb28ce007b1e1aa2689ee7d69751e Mon Sep 17 00:00:00 2001 From: chrox Date: Tue, 25 Nov 2014 16:30:26 +0800 Subject: [PATCH 2/2] update koreader-base --- base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base b/base index ffdcfc5e5..825299559 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit ffdcfc5e5d91f427002bbd0e51ece7e86cbf8ea1 +Subproject commit 825299559d39ed4abdf17c00008938a7d00a7532