Rename Control margin to offset
This commit is contained in:
parent
30d469a5e0
commit
4b8b803931
106 changed files with 1278 additions and 1278 deletions
|
|
@ -160,8 +160,8 @@ void EditorHelp::_class_desc_resized() {
|
|||
const int display_margin = MAX(30 * EDSCALE, get_parent_anchorable_rect().size.width - char_width * 120 * EDSCALE) * 0.5;
|
||||
|
||||
Ref<StyleBox> class_desc_stylebox = EditorNode::get_singleton()->get_theme_base()->get_theme_stylebox("normal", "RichTextLabel")->duplicate();
|
||||
class_desc_stylebox->set_default_margin(MARGIN_LEFT, display_margin);
|
||||
class_desc_stylebox->set_default_margin(MARGIN_RIGHT, display_margin);
|
||||
class_desc_stylebox->set_default_margin(SIDE_LEFT, display_margin);
|
||||
class_desc_stylebox->set_default_margin(SIDE_RIGHT, display_margin);
|
||||
class_desc->add_theme_style_override("normal", class_desc_stylebox);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue