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:
Olivier Goffart 2025-01-22 13:44:27 +01:00
parent 3d664578dd
commit 3f54e6cbc1

View file

@ -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
}