mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
iOS: #1139 (scroll to top)
These changes avoid the wacky Sam-only issue of folders moving around, triggered by the notifier bar doing animated layout.
This commit is contained in:
parent
85d3ae65fa
commit
4ad5a2f4b6
3 changed files with 10 additions and 2 deletions
|
@ -40,7 +40,7 @@
|
|||
}
|
||||
|
||||
- (void)rebuildOptions {
|
||||
if ([appDelegate.activeUsername isEqualToString:@"samuel"]) {
|
||||
if ([appDelegate.activeUsername isEqualToString:@"samuel"] || [appDelegate.activeUsername isEqualToString:@"Dejal"]) {
|
||||
self.menuOptions = [[NSArray alloc]
|
||||
initWithObjects:[@"Preferences" uppercaseString],
|
||||
[@"Mute Sites" uppercaseString],
|
||||
|
|
|
@ -219,6 +219,10 @@
|
|||
}
|
||||
|
||||
- (void)showIn:(float)time {
|
||||
if (showing) {
|
||||
return;
|
||||
}
|
||||
|
||||
showing = YES;
|
||||
// CGRect frame = self.frame;
|
||||
// frame.size.width = self.view.frame.size.width;
|
||||
|
@ -227,6 +231,10 @@
|
|||
|
||||
topOffsetConstraint.constant = -1 * NOTIFIER_HEIGHT;
|
||||
|
||||
if (time == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
[UIView animateWithDuration:time animations:^{
|
||||
// CGRect move = self.frame;
|
||||
// move.origin.x = self.view.frame.origin.x + self.offset.x;
|
||||
|
|
|
@ -2277,7 +2277,7 @@ heightForHeaderInSection:(NSInteger)section {
|
|||
self.notifier.style = NBSyncingStyle;
|
||||
self.notifier.title = @"On its way...";
|
||||
[self.notifier setProgress:0];
|
||||
[self.notifier show];
|
||||
[self.notifier showIn:self.inPullToRefresh_ ? 0.3f : 0.0f];
|
||||
}
|
||||
|
||||
- (void)showCountingNotifier {
|
||||
|
|
Loading…
Add table
Reference in a new issue