@ -29,7 +29,7 @@ local KeyboardLayoutDialog = InputContainer:new{
modal = true ,
modal = true ,
stop_events_propagation = true ,
stop_events_propagation = true ,
keyboard_state = nil ,
keyboard_state = nil ,
width = math.floor ( Screen : getWidth ( ) * 0.8 ) ,
width = nil ,
face = Font : getFace ( " cfont " , 22 ) ,
face = Font : getFace ( " cfont " , 22 ) ,
title_face = Font : getFace ( " x_smalltfont " ) ,
title_face = Font : getFace ( " x_smalltfont " ) ,
title_padding = Size.padding . default ,
title_padding = Size.padding . default ,
@ -40,6 +40,7 @@ local KeyboardLayoutDialog = InputContainer:new{
function KeyboardLayoutDialog : init ( )
function KeyboardLayoutDialog : init ( )
self.width = self.width or math.floor ( math.min ( Screen : getWidth ( ) , Screen : getHeight ( ) ) * 0.8 )
-- Title & description
-- Title & description
self.title_widget = FrameContainer : new {
self.title_widget = FrameContainer : new {
padding = self.title_padding ,
padding = self.title_padding ,
@ -158,7 +159,7 @@ function KeyboardLayoutDialog:init()
self [ 1 ] = CenterContainer : new {
self [ 1 ] = CenterContainer : new {
dimen = Geom : new {
dimen = Geom : new {
w = Screen : getWidth ( ) ,
w = Screen : getWidth ( ) ,
h = Screen: getHeight ( ) ,
h = math.max( Screen: getHeight ( ) , self.dialog_frame : getSize ( ) . h ) ,
} ,
} ,
self.movable ,
self.movable ,
}
}