Replies: 1 comment 2 replies
-
Pretty much. When the widget is put into a loading state, it gets "covered" by the I'm curious what's your use case for needing the size? But here's a possible workaround in the meantime: size = my_widget._render_widget.size |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Hey guys, so this kind of confused me quite a bit. Take a look at this code
now run it
so far, nothing looks wrong, you can click on the 'get middle one size' button and it will return its size
notice what happens when i set it into loading mode
but what if we check the size again?
i'm thinking that this happens since the real widget gets psuedo-hidden, and the loading widget is taking up the same space as the real widget, but since the real widget is hidden, it has a size of (0, 0) even though it still takes up space in the layout
so now what i'm proposing is for the
sizeproperty of the widget to check if the widget is in the loading mode, and if so, return the loading widget's size rather than the main widget's size (to be more consistent with the visual representation of the widget)Beta Was this translation helpful? Give feedback.
All reactions