def _update_canvas_size(self, instance, value):
"""?????????? ??? ????????? ??????? ?????? ??????????.
type instance: instance <kivy.uix.gridlayout.GridLayout object'>;
type value: list;
param value: ??????? ?????? instance;
"""
self.canvas_for_box_content.pos = instance.pos
self.canvas_for_box_content.size = instance.size
# ????????? ?????? ???? Popup - ???? ?????????.
self.body_message.height = self.canvas_for_box_content.size[1] + 150
if self.body_message.height > Window.size[1]:
self.body_message.height = Window.size[1] - 10
评论列表
文章目录