From 752402cf354a105496ed9a86038f83f56d0706fd Mon Sep 17 00:00:00 2001
From: Yuri Sizov <yuris@humnom.net>
Date: Thu, 19 Jan 2023 19:14:09 +0300
Subject: Clean-up, harmonize, and improve StyleBox API

- Make all margin properties follow the same naming convention (their getter and setter too).
- Remove a virtual counterpart of `get_style_margin` from API.
- Allow to override `get_minimum_size` from scripting and remove `get_center_size`.
---
 editor/plugins/bit_map_editor_plugin.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'editor/plugins/bit_map_editor_plugin.cpp')

diff --git a/editor/plugins/bit_map_editor_plugin.cpp b/editor/plugins/bit_map_editor_plugin.cpp
index 4f82aaf071..30fc60b0e0 100644
--- a/editor/plugins/bit_map_editor_plugin.cpp
+++ b/editor/plugins/bit_map_editor_plugin.cpp
@@ -53,7 +53,7 @@ BitMapEditor::BitMapEditor() {
 	// Reduce extra padding on top and bottom of size label.
 	Ref<StyleBoxEmpty> stylebox;
 	stylebox.instantiate();
-	stylebox->set_default_margin(SIDE_RIGHT, 4 * EDSCALE);
+	stylebox->set_content_margin(SIDE_RIGHT, 4 * EDSCALE);
 	size_label->add_theme_style_override("normal", stylebox);
 }
 
-- 
cgit v1.2.3