478 views
in Embedded Wizard Studio by

At my project appear a Scrolloffset value error when list slide end

Like the below picture show:

 

The list link with the Slide Touch Handler, Slide Touch Handler property SnapNext/SnapFirst/SnapLast set to 80 which is the list item height.

Set a break point at the slot which will be invoked when the Slide Touch Handler slide end.

The list have 5 item members, when slide stop at the 1/2/3/4 item, project stop at the break point, at the variables window the ScrollOffset value is 0/-80/-160/-240. It's work very well.

But when we slide stop at the last item, when the project enter the break point,as the variables window show  the ScrollOffset value is -317

why  the ScrollOffset value is not -320 ?It's not even a multiple of 80?

 

1 Answer

0 votes
by

Hello,

why  the ScrollOffset value is not -320 ?It's not even a multiple of 80?

difficult to explain the cause based of the provided information. In fact the Slide Touch Handler should stop at a multiple of 80. Can you check the properties PaddingTop and PaddingBottom of the list? Values != 0 found in these properties can add additional scroll displacement.

If you can't find the cause, please isolate the problem in a simple example and upload it here for further analysis.

Best regards

Paul Banach

by
Thanks for your answer,i check my project property result this problem

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...