def _update_box_content_size(self, *args):
if args != ():
height = self.dp(args[0][1])
if height != 0 and height is not None and height != self.dp(150):
if self.param == 'logpass':
self.height = self.dp(210)
elif self.param == 'text':
self.height = self.dp(170)
else:
if self.param == 'query' and self.check:
h = self.dp(190)
else:
h = self.dp(150)
self.height = h if height < h else height
else:
if self.rst:
self.height = self.dp(400)
if self.height > Window.size[1]:
self.height = self.dp(Window.size[1] - 10)
评论列表
文章目录