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:
hius07
2021-08-17 16:24:44 +03:00
committed by GitHub
parent a8b39c17ed
commit b875ccc6f9
2 changed files with 23 additions and 6 deletions

View File

@@ -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,