Improve button min. size calculation.

This commit is contained in:
bruvzg
2024-05-16 10:46:24 +03:00
parent 5708a3a02e
commit ea379e3b3a
5 changed files with 104 additions and 26 deletions

View File

@ -60,7 +60,7 @@ Size2 OptionButton::get_minimum_size() const {
}
if (has_theme_icon(SNAME("arrow"))) {
const Size2 padding = _get_current_stylebox()->get_minimum_size();
const Size2 padding = _get_largest_stylebox_size();
const Size2 arrow_size = theme_cache.arrow_icon->get_size();
Size2 content_size = minsize - padding;