mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Fix ScrollView on cupertino not showing the last few pixels
Within the cupertino's ScrollView, the Flickable is positioned with a 2 pixel margin with the `x` and `y` properties property, so the width and height should also account for that margin. Fix the test_cpp_elements_listview in test-driver-cpp
This commit is contained in:
parent
3d664578dd
commit
3f54e6cbc1
1 changed files with 2 additions and 2 deletions
|
@ -114,8 +114,8 @@ export component ScrollView {
|
|||
interactive: false;
|
||||
viewport-y <=> vertical-bar.value;
|
||||
viewport-x <=> horizontal-bar.value;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: parent.width - 4px;
|
||||
height: parent.height - 4px;
|
||||
|
||||
@children
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue