diff options
Diffstat (limited to 'scene/resources')
| -rw-r--r-- | scene/resources/style_box.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp index 626fda50df..e87fd7bafc 100644 --- a/scene/resources/style_box.cpp +++ b/scene/resources/style_box.cpp @@ -182,7 +182,7 @@ Size2 StyleBoxTexture::get_center_size() const { if (texture.is_null()) return Size2(); - return texture->get_size() - get_minimum_size(); + return region_rect.size - get_minimum_size(); } void StyleBoxTexture::set_expand_margin_size(Margin p_expand_margin, float p_size) { |