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.height = self.dp(self.canvas_for_box_content.size[1] + 70)
self.width = self.dp(int(Window.size[0] // self.hint_x))
if self.height > Window.size[1]:
self.height = self.dp(Window.size[1] - 10)
评论列表
文章目录