[Question] Is there a way to animate a container's expansion in the opposite direction? #5878
Unanswered
nelson-python
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello,
Regarding the following app:
If I increase the size (e.g., height) of the green container:
green_container.height = green_container.height * 3
green_container.update()
...I notice the following:
...which is expected behavior.
However, if I increase the size (e.g., height) of the blue container:
blue_container.height = blue_container.height * 3
blue_container.update()
I notice the following:
...which is unexpected behavior.
The reason for this is that blue container is expanding in height downwards (which is outside the border of my app).
I've been able to find a workaround using an offset for the blue container (increasing its size beforehand) but would rather expand the blue container like I do with the green container.
Question: Is there a way to expand the height for the blue container, such that it expands upwards (which lies within my app) rather than downwards (which lies outside my app)?
Note: All containers (red, blue, green, amber) are in a stack control.
Thank you,
Nelson
Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions