mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
KeyboardLayoutDialog movable (#7911)
This commit is contained in:
@@ -12,6 +12,7 @@ local Geom = require("ui/geometry")
|
||||
local InputContainer = require("ui/widget/container/inputcontainer")
|
||||
local Language = require("ui/language")
|
||||
local LineWidget = require("ui/widget/linewidget")
|
||||
local MovableContainer = require("ui/widget/container/movablecontainer")
|
||||
local RadioButtonTable = require("ui/widget/radiobuttontable")
|
||||
local Size = require("ui/size")
|
||||
local TextWidget = require("ui/widget/textwidget")
|
||||
@@ -25,6 +26,7 @@ local KeyboardLayoutDialog = InputContainer:new{
|
||||
is_always_active = true,
|
||||
title = _("Keyboard layout"),
|
||||
modal = true,
|
||||
stop_events_propagation = true,
|
||||
width = math.floor(Screen:getWidth() * 0.8),
|
||||
face = Font:getFace("cfont", 22),
|
||||
title_face = Font:getFace("x_smalltfont"),
|
||||
@@ -137,12 +139,15 @@ function KeyboardLayoutDialog:init()
|
||||
}
|
||||
}
|
||||
|
||||
self.movable = MovableContainer:new{
|
||||
self.dialog_frame,
|
||||
}
|
||||
self[1] = CenterContainer:new{
|
||||
dimen = Geom:new{
|
||||
w = Screen:getWidth(),
|
||||
h = Screen:getHeight(),
|
||||
},
|
||||
self.dialog_frame,
|
||||
self.movable,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user