I apologize in advance for not being very articulate, but it's hard to describe what's happening without being a little convoltued.
I am trying to use a combination of CanvasLayer, VBoxes, HBoxes, Labels, Panels, MarginContainers and CenterContainers to make a UI layout.
Everything seems to go smoothly for the first while: I put a CanvasLayer as the root of the scene, put a VBox inside it, a label and an HBox inside that, and inside the Hbox, andother label, and another VBox, which itself has a MarginContainer, a CenterContainer, and another MarginContainer. Inside the last CenterContainer is a panel. I size everything the way I want it, and it looks like everything is as it should be.
Then, every time (and I have tried this maybe four or five different times now), the rect settings just reset, or change to different values. It appears to be completely arbitrary, although I'm sure there's some reason behind it. Once it happened when I added text to a label, another time it happened when I tried to size the panel inside the CenterContainer. From what I can assess, there doesn't seem to be a reproduceable cause (again, I know there must be a logical reason behind the problem, I just can't figure out what that is).
If I can be quite honest, it's getting rather frustrating, and I'm stumped as to what to try next. I have read the documentation for the objects I'm trying to use, and as far as I can tell, I'm using them the way they're intended.
Can anyone offer some advice? Know a good tutorial for using UI/Canvas objects? Magic spell? Anything?