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,
|
||||
cursor,
|
||||
&Rectangle {
|
||||
y: bounds.y + translation.y,
|
||||
x: bounds.x + translation.x,
|
||||
..bounds
|
||||
y: visible_bounds.y + translation.y,
|
||||
x: visible_bounds.x + translation.x,
|
||||
..visible_bounds
|
||||
},
|
||||
);
|
||||
},
|
||||
|
|
@ -1103,9 +1103,9 @@ where
|
|||
content_layout,
|
||||
cursor,
|
||||
&Rectangle {
|
||||
x: bounds.x + translation.x,
|
||||
y: bounds.y + translation.y,
|
||||
..bounds
|
||||
x: visible_bounds.x + translation.x,
|
||||
y: visible_bounds.y + translation.y,
|
||||
..visible_bounds
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue