iOS: #1139 (scroll to top)

Better fix; just needed to add an extra layout before the animation.
This commit is contained in:
David Sinclair 2018-11-13 14:56:44 -08:00
parent 4ad5a2f4b6
commit 79824df7e3
2 changed files with 2 additions and 8 deletions

View file

@ -219,10 +219,6 @@
}
- (void)showIn:(float)time {
if (showing) {
return;
}
showing = YES;
// CGRect frame = self.frame;
// frame.size.width = self.view.frame.size.width;
@ -231,9 +227,7 @@
topOffsetConstraint.constant = -1 * NOTIFIER_HEIGHT;
if (time == 0) {
return;
}
[self.superview layoutIfNeeded];
[UIView animateWithDuration:time animations:^{
// CGRect move = self.frame;

View file

@ -2277,7 +2277,7 @@ heightForHeaderInSection:(NSInteger)section {
self.notifier.style = NBSyncingStyle;
self.notifier.title = @"On its way...";
[self.notifier setProgress:0];
[self.notifier showIn:self.inPullToRefresh_ ? 0.3f : 0.0f];
[self.notifier show];
}
- (void)showCountingNotifier {