Why Label added to the Bottom Panel are moved?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kakoeimon

When a plugin script adds a control in the bottom panel, the labels inside the control are moved to a different position.
An example can be found here : EditorPlugin displace Labels used by the Control added to the bottom panel. · Issue #18968 · godotengine/godot · GitHub

My question is, why?

How can I fix it to get the same result?

It could be due to differences between the editor theme and the default theme. Or, maybe it’s due to bad anchoring?
A control you place inside the bottom panel is most likely going to fill it at variable sizes, so it should be designed in a way it can be resized freely and fit within the root rectangle.
Also, make sure you hide it when required (By implementing EditorPlugin.make_visible(v))

Zylann | 2018-05-25 17:17