Bug 17376 - MonoTouch.Dialog ReloadComplete() Method scrolls top element off screen.
Summary: MonoTouch.Dialog ReloadComplete() Method scrolls top element off screen.
Status: VERIFIED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 7.0.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-01-22 14:32 UTC by Jon Goldberger [MSFT]
Modified: 2014-03-13 09:38 UTC (History)
3 users (show)

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

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:
VERIFIED INVALID

Comment 1 Jon Goldberger [MSFT] 2014-01-22 14:33:04 UTC
Looks like the pull to refresh has a bug, where if I call TriggerRefresh() then ReloadComplete(), then the view is scrolled off screen at the top. See attached screenshots. In 1st one, there's no section header, which is scrolled off the top (2nd pic).
I'm guessing this is caused by the fact that if showStatus is false below, then the scroll-down animation doesn't happen:
void TriggerRefresh (bool showStatus)
{
if (refreshRequested == null)
return;


if (reloading)
return;

reloading = true;
if (refreshView != null)
refreshView.SetActivity (true);
refreshRequested (this, EventArgs.Empty);


if (reloading && showStatus && refreshView != null){
UIView.BeginAnimations ("reloadingData");
UIView.SetAnimationDuration (0.2);
TableView.ContentInset = new UIEdgeInsets (60, 0, 0, 0);
UIView.CommitAnimations ();
}
}
but ReloadComplete() still animates scroll up:
public void ReloadComplete ()
{
if (refreshView != null)
refreshView.LastUpdate = DateTime.Now;
if (!reloading)
return;


reloading = false;
if (refreshView == null)
return;

refreshView.SetActivity (false);
refreshView.Flip (false);
UIView.BeginAnimations ("doneReloading");
UIView.SetAnimationDuration (0.3f);
TableView.ContentInset = new UIEdgeInsets (0, 0, 0, 0);
refreshView.SetStatus (RefreshViewStatus.PullToReload);
UIView.CommitAnimations ();
}
I can't override these two methods, but can you suggest other workaround?
Comment 3 Rolf Bjarne Kvinge [MSFT] 2014-01-23 09:24:07 UTC
Closing as per comment 2.
Comment 4 narayanp 2014-03-13 09:38:56 UTC
As per comment#2 and #3 closing this issue.