-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full Rect MarginContainer does not work fine in the main scene plugin #87412
Comments
I changed the type of marginContainer to Control node in problem is fix soo margin container has a problem and it is a bug |
You did not fix your problem, but you hid it. The Control has wrong size. |
which one? |
The one you used instead of MarginContainer. You can see the content correctly, because non-Container nodes don't arrange their children. |
I changed again to margin container |
Do u just check Expand? why is your file working but when I do that is not work? |
Enable Expand and then click Fill. |
Did you set it for the root node? (Control) I used the toolbar menu when setting it, but it should be the same using the inspector. |
yes I do |
Tested versions
reproducible in 4.2.1.stable
System information
Windows 7, 10, Godot 4.2.1 Stable
Issue description
I tried to make a main scene plugin I put a margin container and made it fully rect but in plugin did not work at all
My scene:
result:
after that, I added some code to my scene script and now it's better
Code:
result:
but why? Is it a bug or do I miss something?
Steps to reproduce
create a main scene plugin
add the margin container as a child as the control node and make it a full Rect
add a label or anything to show content
Test result
or
test attached addon
Minimal reproduction project (MRP)
addons.zip
The text was updated successfully, but these errors were encountered: