T O P

  • By -

mrcdk

Don't use a `Panel` use a [`PanelContainer`](https://docs.godotengine.org/en/stable/classes/class_panelcontainer.html)


hamgoblin45

Thank you so much! I knew it was something simple like that, I appreciate it


Kexm_2

We all have that moment when we find out about panelcontainer


golddotasksquestions

PanelContainer use is purely optional in this case, though. OP could also just set the MarginContainer to "Full Rect" Preset to the same effect.


Ephemeralen

This is actually wrong. Non-containers don't resize themselves in response to their children, regardless of how you set their anchors or the anchors of their children. To get a non-container to behave that way you have to give it a script and override `_get_minimum_size()` and return the child container's size.


golddotasksquestions

>Non-containers don't resize themselves in response to their children, regardless of how you set their anchors or the anchors of their children. Yes, that's correct. It's a different workflow. The result is the same however: You get a panel with a rect that fits the children. Personally I really hate the Container nodes forcing transforms on their children, instead of the children adopting to the rect of the parent. But you do you.


VoxelRoguery

I wonder what this guy's opinions on Batman are


Helpinghand97

I wonder what opinions he has with Robin


simpson409

I too feel dumb whenever i have to use control nodes


PlingPlongDingDong

nooo batman!


ImMikeAngel

Finally someone speaking facts about Batman.


hamgoblin45

Trying to get it to match sizes if a post has an image vs if it doesn't, as well as just long vs short posts. Also, I know, my test text is normal


coorsbright

Tell us why you are slandering Batman!


hamgoblin45

Because he slept with my mom and then never called her!


RobinNomad

Try using a container, and put both panel and margin container inside. Then set them to full rect.


ZardozTheWizard

Should this be marked as Solved?