mirror of https://github.com/godotengine/godot
Merge pull request #114037 from YeldhamDev/scrollcon_hint_fix
Fix `ScrollContainer`'s bottom scroll hint ignoring margins
This commit is contained in:
commit
590c310d19
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue