[Python] Issue with animations not honoring ScrollView in kivy app

Discussão em 'Python' iniciado por Stack, Janeiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    I've been stuck on this one bug for more than a week and I just can't seem to resolve it. I'm writing a rather large application that is about a dozen files. Everything works except for this animation bug. In a bid to squash the bug, I reduced my code to only that which is strictly necessary for exhibiting the bug into a single monolithic file. So if the structure of the code seems overly complicated for what it is and the file is long, that's why.

    Gitlab with files, asset, and screenshots of the bug: https://gitlab.com/ninamillik/exampleproject/-/tree/main clone: git@gitlab.com:ninamillik/exampleproject.git

    Details: Requires: kivy

    Issue: Animation issue when number list grows taller than the numberlist window

    Background: When a digit button is pressed, this creates a new number with height 0 which is inserted into the number list. This number is grown until the digit buttons (including a preceding blank and an appending undo button) reach their full height. When the number list is shorter than the numberlist window (min() in ScrollView height in kv file), the list is centered. When the list is taller, the ScrollView is as tall as the numberlist Window and scroll_y is set to 0.

    Problem: As the numberlist grows, the DefaultDigitButtons do not honor the boundaries of the ScrollView, i.e. the buttons are rended "on top of" the number window border (see pictures).

    Details: This behavior affects the DefaultDigitButtons and only the DefaultDigitButtons. As soon as the numberlist is scrolled or if a digit button is pressed (but not released), the abberant DefaultDigitButtons will correct themselves immediately.

    Any and all help would be hugely appreciated!

    Continue reading...

Compartilhe esta Página