mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
doc: Sync classref with current source
Also apply clang-format.
This commit is contained in:
parent
d31ff039ed
commit
9f68626fb2
4 changed files with 17 additions and 14 deletions
|
@ -202,7 +202,7 @@ void PopupMenu::_scroll(float p_factor, const Point2 &p_over) {
|
|||
} else if (dy < 0) {
|
||||
const float global_bottom = get_global_position().y + get_size().y * get_global_transform().get_scale().y;
|
||||
const float viewport_height = get_viewport_rect().size.y;
|
||||
const float limit = global_bottom > viewport_height ? global_bottom - viewport_height: 0;
|
||||
const float limit = global_bottom > viewport_height ? global_bottom - viewport_height : 0;
|
||||
dy = -MIN(-dy, limit);
|
||||
}
|
||||
set_position(get_position() + Vector2(0, dy));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue