Fixup "scroll down" button so it doesn't fall behind toolbar

This commit is contained in:
Michael Kirk 2018-06-29 16:58:26 -06:00
parent fd22c6cf20
commit 126d41e542
2 changed files with 3 additions and 3 deletions

View file

@ -535,6 +535,7 @@ typedef enum : NSUInteger {
{
[super loadView];
// make sure toolbar extends below iPhoneX home button.
self.view.backgroundColor = [UIColor ows_toolbarBackgroundColor];
}
@ -2582,8 +2583,7 @@ typedef enum : NSUInteger {
[self.scrollDownButton autoSetDimension:ALDimensionWidth toSize:ConversationScrollButton.buttonSize];
[self.scrollDownButton autoSetDimension:ALDimensionHeight toSize:ConversationScrollButton.buttonSize];
self.scrollDownButtonButtomConstraint =
[self.scrollDownButton autoPinEdge:ALEdgeBottom toEdge:ALEdgeBottom ofView:self.collectionView];
self.scrollDownButtonButtomConstraint = [self.scrollDownButton autoPinEdgeToSuperviewMargin:ALEdgeBottom];
[self.scrollDownButton autoPinEdgeToSuperviewEdge:ALEdgeTrailing];
#ifdef DEBUG

View file

@ -91,7 +91,7 @@ NS_ASSUME_NONNULL_BEGIN
+ (UIColor *)ows_toolbarBackgroundColor
{
return [self colorWithWhite:245 / 255.f alpha:1.f];
return self.ows_navbarBackgroundColor;
}
+ (UIColor *)ows_lightBackgroundColor