fix keyboard in landscape

pull/190/head
chrox 11 years ago
parent 32bd30aae9
commit ef7f3fec90

@ -8,6 +8,21 @@ ReaderGoto = InputContainer:new{
}
function ReaderGoto:init()
self.ui.menu:registerToMainMenu(self)
end
function ReaderGoto:addToMainMenu(tab_item_table)
-- insert goto command to main reader menu
table.insert(tab_item_table.navi, {
text = self.goto_menu_title,
callback = function()
self:onShowGotoDialog()
end,
})
end
function ReaderGoto:onShowGotoDialog()
DEBUG("show goto dialog")
self.goto_dialog = InputDialog:new{
title = self.goto_dialog_title,
input_hint = "(1 - "..self.document.info.number_of_pages..")",
@ -40,21 +55,6 @@ function ReaderGoto:init()
width = Screen:getWidth() * 0.8,
height = Screen:getHeight() * 0.2,
}
self.ui.menu:registerToMainMenu(self)
end
function ReaderGoto:addToMainMenu(tab_item_table)
-- insert goto command to main reader menu
table.insert(tab_item_table.navi, {
text = self.goto_menu_title,
callback = function()
self:onShowGotoDialog()
end,
})
end
function ReaderGoto:onShowGotoDialog()
DEBUG("show goto dialog")
self.goto_dialog:onShowKeyboard()
UIManager:show(self.goto_dialog)
end

@ -77,7 +77,7 @@ function InputText:initKeyboard()
layout = keyboard_layout,
inputbox = self,
width = Screen:getWidth(),
height = Screen:getHeight()*0.32,
height = math.max(Screen:getWidth(), Screen:getHeight())*0.33,
}
end

Loading…
Cancel
Save