Checkbutton: ensure max width, multiline if needed (#8066)

This commit is contained in:
hius07
2021-08-14 01:49:19 +03:00
committed by GitHub
parent b622d6edd8
commit c8a7f52672
6 changed files with 25 additions and 7 deletions

View File

@@ -376,6 +376,7 @@ function InputText:initTextBox(text, char_added)
if self.is_password_type and self.show_password_toggle then
self._check_button = self._check_button or CheckButton:new{
text = _("Show password"),
max_width = self.width,
callback = function()
if self.text_type == "text" then
self.text_type = "password"