我遇到一个问题,即我的布局与弹出窗口偏离中心。有人知道为什么吗?
Builder.load_string("""
<AddNewChangePopup>:
size_hint: .85, .85
auto_dismiss: False
title: "Submit New Change"
RelativeLayout:
x: root.x
size: root.size
pos: root.pos
pos_hint: {"bottom": 1, "left": 1}
canvas:
Color:
rgba: 0.5, 0.5, 0.5, 0.5
Rectangle: #woohoo!!!
size: self.size
pos: self.pos
""")