renamed all Rect2.pos to Rect2.position
This commit is contained in:
parent
69bec86028
commit
a3c90b0293
84 changed files with 685 additions and 685 deletions
|
|
@ -233,14 +233,14 @@ void ScrollContainer::_notification(int p_what) {
|
|||
|
||||
Rect2 r = Rect2(-scroll, minsize);
|
||||
if (!scroll_h || (!h_scroll->is_visible_in_tree() && c->get_h_size_flags() & SIZE_EXPAND)) {
|
||||
r.pos.x = 0;
|
||||
r.position.x = 0;
|
||||
if (c->get_h_size_flags() & SIZE_EXPAND)
|
||||
r.size.width = MAX(size.width, minsize.width);
|
||||
else
|
||||
r.size.width = minsize.width;
|
||||
}
|
||||
if (!scroll_v || (!v_scroll->is_visible_in_tree() && c->get_v_size_flags() & SIZE_EXPAND)) {
|
||||
r.pos.y = 0;
|
||||
r.position.y = 0;
|
||||
r.size.height = size.height;
|
||||
if (c->get_v_size_flags() & SIZE_EXPAND)
|
||||
r.size.height = MAX(size.height, minsize.height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue