Bug 43343 - AbsoluteLayout updating child bounds breaks on fling
Summary: AbsoluteLayout updating child bounds breaks on fling
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.1
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Samantha Houts [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-08-15 08:00 UTC by emils
Modified: 2017-06-19 18:43 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Images with the problem, Test solution and all info about my Xamarin install (87.99 KB, application/zip)
2016-08-15 08:00 UTC, emils
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description emils 2016-08-15 08:00:52 UTC
Created attachment 17024 [details]
Images with the problem, Test solution and all info about my Xamarin install

I needed to create a sticky header for a AbsoluteLayout view which is in ScrollView.... 
So I added another element to the view and decided I would change the new elements Layout bounds property like so 

`element.SetValue(AbsoluteLayout.LayoutBoundsProperty, new Rectangle(0, y, this.Width, calculatedHeight))`

This approach works fine on our iOS devices, but on Android after some massive flinging it just wont move around anymore! If I am looking at elements properties I see that the Y value changes, but it just wont move to the new position..... 

To visualise the problem I have attached images with a complete test code.....
Comment 1 emils 2016-08-15 09:29:29 UTC
It appears that the issue is present on Android devices running Android 4.2.2 to 5.0
Comment 2 Samantha Houts [MSFT] 2016-09-06 22:29:22 UTC
I was unable to reproduce the behavior on my Android 5.0 device, nor on any emulators. Can you be more specific about "massive flinging" and/or the particular devices that you're testing on? 

I do see the header move down, but it always goes back to the top where it is supposed to be.
Comment 3 Samantha Houts [MSFT] 2017-06-19 18:43:34 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!