Button: fix long wrapped text alignment (#9778)

pull/9779/head
hius07 2 years ago committed by GitHub
parent 77e0ac57de
commit 80f818e757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -108,7 +108,7 @@ function Button:init()
self.label_widget = TextBoxWidget:new{ self.label_widget = TextBoxWidget:new{
text = self.text, text = self.text,
line_height = 0, line_height = 0,
alignment = "center", alignment = self.align,
width = max_width, width = max_width,
height = max_height, height = max_height,
height_adjust = true, height_adjust = true,

Loading…
Cancel
Save