1. <i id='dWEAb'><tr id='dWEAb'><dt id='dWEAb'><q id='dWEAb'><span id='dWEAb'><b id='dWEAb'><form id='dWEAb'><ins id='dWEAb'></ins><ul id='dWEAb'></ul><sub id='dWEAb'></sub></form><legend id='dWEAb'></legend><bdo id='dWEAb'><pre id='dWEAb'><center id='dWEAb'></center></pre></bdo></b><th id='dWEAb'></th></span></q></dt></tr></i><div id='dWEAb'><tfoot id='dWEAb'></tfoot><dl id='dWEAb'><fieldset id='dWEAb'></fieldset></dl></div>

      <small id='dWEAb'></small><noframes id='dWEAb'>

      <tfoot id='dWEAb'></tfoot>
      • <bdo id='dWEAb'></bdo><ul id='dWEAb'></ul>
      <legend id='dWEAb'><style id='dWEAb'><dir id='dWEAb'><q id='dWEAb'></q></dir></style></legend>
    1. Kivy ScrollView - 不滚动

      Kivy ScrollView - Not Scrolling(Kivy ScrollView - 不滚动)

      <i id='ZY4DZ'><tr id='ZY4DZ'><dt id='ZY4DZ'><q id='ZY4DZ'><span id='ZY4DZ'><b id='ZY4DZ'><form id='ZY4DZ'><ins id='ZY4DZ'></ins><ul id='ZY4DZ'></ul><sub id='ZY4DZ'></sub></form><legend id='ZY4DZ'></legend><bdo id='ZY4DZ'><pre id='ZY4DZ'><center id='ZY4DZ'></center></pre></bdo></b><th id='ZY4DZ'></th></span></q></dt></tr></i><div id='ZY4DZ'><tfoot id='ZY4DZ'></tfoot><dl id='ZY4DZ'><fieldset id='ZY4DZ'></fieldset></dl></div>
    2. <tfoot id='ZY4DZ'></tfoot>

      <small id='ZY4DZ'></small><noframes id='ZY4DZ'>

          • <legend id='ZY4DZ'><style id='ZY4DZ'><dir id='ZY4DZ'><q id='ZY4DZ'></q></dir></style></legend>
                <tbody id='ZY4DZ'></tbody>
                <bdo id='ZY4DZ'></bdo><ul id='ZY4DZ'></ul>
                本文介绍了Kivy ScrollView - 不滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                看起来是人们对 Kivy 的常见问题.我已经在 SO 上检查了其他问题是否存在同样的问题,但没有运气.

                Looks like a common problem people have with Kivy. I've already checked other questions for the same problem here on SO but no luck.

                我有一个容器BoxLayout:

                class Cnt(BoxLayout):
                    pass
                

                .kv 文件中,我有这样的内容:

                In the .kv file I've got something like this:

                <Cnt>:
                    orientation: 'vertical'
                    ScrollView:
                        size_hint: (1, .9)
                        StackLayout:
                            padding: 5
                            size_hint_y: None
                            id: content_layout
                            minimum_height: self.height
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                            ARow:
                    BoxLayout:
                        size_hint: (1, .1)
                        Label:
                            text: 'A'
                

                ARow 是一个带有 CheckBoxLabelBoxLayout.它有:

                ARow is a BoxLayout with a CheckBox and a Label. It has:

                size_hint: (1, None)
                height: 40
                

                据我了解,这是仅有的两件重要的事情可以对滚动产生影响.

                As far as I understand these are the only two important things that could do something to the scrolling.

                minimum_height: self.height 与我在 Python 代码中绑定 StackLayout 的 minimum_height 和 height 相同,如果我理解正确的话.

                minimum_height: self.height is the same as if I would bind the minimum_height and height of the StackLayout in Python code if I understood it right.

                推荐答案

                改变

                minimum_height: self.height
                

                height: self.minimum_height
                

                minimum_height 是根据所有孩子的需要计算的.您希望实际高度等于最小高度,即使它大于父级的高度(对于滚动,这正是您想要的).

                The minimum_height is what's calculated as needed for all the children. You want the actual height to be equal to the minimum height, even if it's larger than the parent's height (for scrolling, this is exactly what you want).

                这篇关于Kivy ScrollView - 不滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                【网站声明】本站部分内容来源于互联网,旨在帮助大家更快的解决问题,如果有图片或者内容侵犯了您的权益,请联系我们删除处理,感谢您的支持!

                相关文档推荐

                How to make a discord bot that gives roles in Python?(如何制作一个在 Python 中提供角色的不和谐机器人?)
                Discord bot isn#39;t responding to commands(Discord 机器人没有响应命令)
                Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“关于我吗?Discord 机器人的功能?(不和谐.py))
                message.channel.id Discord PY(message.channel.id Discord PY)
                How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 机器人?)
                discord.py - Automaticaly Change an Role Color(discord.py - 自动更改角色颜色)
                    <bdo id='JQnO4'></bdo><ul id='JQnO4'></ul>

                    <small id='JQnO4'></small><noframes id='JQnO4'>

                        <i id='JQnO4'><tr id='JQnO4'><dt id='JQnO4'><q id='JQnO4'><span id='JQnO4'><b id='JQnO4'><form id='JQnO4'><ins id='JQnO4'></ins><ul id='JQnO4'></ul><sub id='JQnO4'></sub></form><legend id='JQnO4'></legend><bdo id='JQnO4'><pre id='JQnO4'><center id='JQnO4'></center></pre></bdo></b><th id='JQnO4'></th></span></q></dt></tr></i><div id='JQnO4'><tfoot id='JQnO4'></tfoot><dl id='JQnO4'><fieldset id='JQnO4'></fieldset></dl></div>
                          <tbody id='JQnO4'></tbody>

                          <legend id='JQnO4'><style id='JQnO4'><dir id='JQnO4'><q id='JQnO4'></q></dir></style></legend>

                          <tfoot id='JQnO4'></tfoot>