kivy: use TextInput to workaround Label texture size issue
This commit is contained in:
@@ -66,10 +66,6 @@ Builder.load_string('''
|
|||||||
#auto_dismiss: False
|
#auto_dismiss: False
|
||||||
size_hint: None, None
|
size_hint: None, None
|
||||||
canvas.before:
|
canvas.before:
|
||||||
Color:
|
|
||||||
rgba: 0, 0, 0, .9
|
|
||||||
Rectangle:
|
|
||||||
size: Window.size
|
|
||||||
Color:
|
Color:
|
||||||
rgba: .239, .588, .882, 1
|
rgba: .239, .588, .882, 1
|
||||||
Rectangle:
|
Rectangle:
|
||||||
@@ -192,12 +188,13 @@ Builder.load_string('''
|
|||||||
size_hint: 1, 1
|
size_hint: 1, 1
|
||||||
ScrollView:
|
ScrollView:
|
||||||
size_hint: 1, 1
|
size_hint: 1, 1
|
||||||
Label:
|
TextInput:
|
||||||
color: root.text_color
|
color: root.text_color
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
text_size: self.width, None
|
text_size: self.width, None
|
||||||
height: self.texture_size[1]
|
height: self.minimum_height
|
||||||
text: root.message
|
text: root.message
|
||||||
|
disabled: True
|
||||||
|
|
||||||
<WizardEmailDialog>
|
<WizardEmailDialog>
|
||||||
Label:
|
Label:
|
||||||
|
|||||||
Reference in New Issue
Block a user