I was messing around with an edge case of calling .with_content multiple time. I had assumed that the widget provided by the second call would just replace the previous widget. Instead the new widget is placed into the Window and the first widget just pops out of it and is placed on the application window at 0,0.
Is this a bug or is my assumption wrong and this is perfectly valid behavior?
This is perfectly valid behavior, because .with_content just sets a handle to inner content variable. Later this content will be attached to the inner panel of the window.
I was messing around with an edge case of calling .with_content multiple time. I had assumed that the widget provided by the second call would just replace the previous widget. Instead the new widget is placed into the Window and the first widget just pops out of it and is placed on the application window at 0,0.
Is this a bug or is my assumption wrong and this is perfectly valid behavior?
Thanks!
Example code: