diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-22 17:53:04 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-22 17:53:04 +0100 |
commit | 5068d823745ad05d7bdaeb596526f7ca196124d3 (patch) | |
tree | ff1bcd9335a98fcfb2b1cdf92a5d2d19865ea171 /scene/gui/separator.cpp | |
parent | 5432bad36f789118fe69ae733427d0c7aebd7dcb (diff) | |
parent | 752402cf354a105496ed9a86038f83f56d0706fd (diff) | |
download | redot-engine-5068d823745ad05d7bdaeb596526f7ca196124d3.tar.gz |
Merge pull request #71686 from YuriSizov/stylebox-min-size-but-better
Clean-up, harmonize, and improve StyleBox API
Diffstat (limited to 'scene/gui/separator.cpp')
-rw-r--r-- | scene/gui/separator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/separator.cpp b/scene/gui/separator.cpp index 45185de698..b0879c1931 100644 --- a/scene/gui/separator.cpp +++ b/scene/gui/separator.cpp @@ -51,7 +51,7 @@ void Separator::_notification(int p_what) { switch (p_what) { case NOTIFICATION_DRAW: { Size2i size = get_size(); - Size2i ssize = theme_cache.separator_style->get_minimum_size() + theme_cache.separator_style->get_center_size(); + Size2i ssize = theme_cache.separator_style->get_minimum_size(); if (orientation == VERTICAL) { theme_cache.separator_style->draw(get_canvas_item(), Rect2((size.x - ssize.x) / 2, 0, ssize.x, size.y)); |