Fix viewport when using nested scrollables
This commit is contained in:
parent
447f5ae494
commit
7336a18443
1 changed files with 6 additions and 6 deletions
|
|
@ -999,9 +999,9 @@ where
|
||||||
content_layout,
|
content_layout,
|
||||||
cursor,
|
cursor,
|
||||||
&Rectangle {
|
&Rectangle {
|
||||||
y: bounds.y + translation.y,
|
y: visible_bounds.y + translation.y,
|
||||||
x: bounds.x + translation.x,
|
x: visible_bounds.x + translation.x,
|
||||||
..bounds
|
..visible_bounds
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
@ -1103,9 +1103,9 @@ where
|
||||||
content_layout,
|
content_layout,
|
||||||
cursor,
|
cursor,
|
||||||
&Rectangle {
|
&Rectangle {
|
||||||
x: bounds.x + translation.x,
|
x: visible_bounds.x + translation.x,
|
||||||
y: bounds.y + translation.y,
|
y: visible_bounds.y + translation.y,
|
||||||
..bounds
|
..visible_bounds
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue