我观察到 size_hint_x 在 BoxLayout 中不起作用,例如
BoxLayout:
Button:
Size_hint_x: #any value above zero has same effect, it streches to full x axis width.
或者
BoxLayout:
orientation: 'vertical'
Button:
Size_hint_y: #any value above zero has same effect, it streches to full y axis width.
Popup 也一样,如果我将值设为零,它会设置为特定的高度或宽度,但如果我使用屏幕,它可以正常工作。
根据 BoxLayout,我是否遗漏了什么?