1
0
Fork 0

Merge pull request #114037 from YeldhamDev/scrollcon_hint_fix

Fix `ScrollContainer`'s bottom scroll hint ignoring margins
This commit is contained in:
Thaddeus Crews 2025-12-16 20:32:58 -06:00
commit 590c310d19
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ void ScrollContainer::_update_scrollbars() {
void ScrollContainer::_update_scroll_hints() {
Size2 size = get_size();
Rect2 margins = _get_margins();
Size2 scroll_size = size - margins.position + margins.size;
Size2 scroll_size = size - margins.position - margins.size;
float v_scroll_value = v_scroll->get_value();
bool v_scroll_below_max = v_scroll_value < (largest_child_min_size.height - scroll_size.height - 1);