mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
iOS: #1139 (scroll to top)
Better fix; just needed to add an extra layout before the animation.
This commit is contained in:
parent
4ad5a2f4b6
commit
79824df7e3
2 changed files with 2 additions and 8 deletions
|
@ -219,10 +219,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)showIn:(float)time {
|
- (void)showIn:(float)time {
|
||||||
if (showing) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
showing = YES;
|
showing = YES;
|
||||||
// CGRect frame = self.frame;
|
// CGRect frame = self.frame;
|
||||||
// frame.size.width = self.view.frame.size.width;
|
// frame.size.width = self.view.frame.size.width;
|
||||||
|
@ -231,9 +227,7 @@
|
||||||
|
|
||||||
topOffsetConstraint.constant = -1 * NOTIFIER_HEIGHT;
|
topOffsetConstraint.constant = -1 * NOTIFIER_HEIGHT;
|
||||||
|
|
||||||
if (time == 0) {
|
[self.superview layoutIfNeeded];
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[UIView animateWithDuration:time animations:^{
|
[UIView animateWithDuration:time animations:^{
|
||||||
// CGRect move = self.frame;
|
// CGRect move = self.frame;
|
||||||
|
|
|
@ -2277,7 +2277,7 @@ heightForHeaderInSection:(NSInteger)section {
|
||||||
self.notifier.style = NBSyncingStyle;
|
self.notifier.style = NBSyncingStyle;
|
||||||
self.notifier.title = @"On its way...";
|
self.notifier.title = @"On its way...";
|
||||||
[self.notifier setProgress:0];
|
[self.notifier setProgress:0];
|
||||||
[self.notifier showIn:self.inPullToRefresh_ ? 0.3f : 0.0f];
|
[self.notifier show];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)showCountingNotifier {
|
- (void)showCountingNotifier {
|
||||||
|
|
Loading…
Add table
Reference in a new issue