mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
InputText: fix hold handling, add clipboard empty hint (#8091)
Before: when holding the input box in input dialogs for calling the Clipboard, hold release was passed to MovableContainer and input dialog moved a little bit.
This commit is contained in:
@@ -54,6 +54,7 @@ local TextViewer = InputContainer:new{
|
||||
|
||||
title_face = Font:getFace("x_smalltfont"),
|
||||
text_face = Font:getFace("x_smallinfofont"),
|
||||
fgcolor = Blitbuffer.COLOR_BLACK,
|
||||
title_padding = Size.padding.default,
|
||||
title_margin = Size.margin.title,
|
||||
text_padding = Size.padding.large,
|
||||
@@ -167,6 +168,7 @@ function TextViewer:init()
|
||||
self.scroll_text_w = ScrollTextWidget:new{
|
||||
text = self.text,
|
||||
face = self.text_face,
|
||||
fgcolor = self.fgcolor,
|
||||
width = self.width - 2*self.text_padding - 2*self.text_margin,
|
||||
height = textw_height - 2*self.text_padding -2*self.text_margin,
|
||||
dialog = self,
|
||||
|
||||
Reference in New Issue
Block a user