Skip to content

Commit

Permalink
[NavigationDrawer] Fix broken header when content expands (material-c…
Browse files Browse the repository at this point in the history
…omponents#8514)

In material-components#8503 this line was removed but after further testing when the contentViewController expands it's preferredContentSize this causes a regression in the header behavior. With this line added back into the check this behavior is fixed.
  • Loading branch information
codeman7 authored Sep 26, 2019
1 parent a80e41c commit 6de8286
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ - (void)updateViewWithContentOffset:(CGPoint)contentOffset {
transitionRatio:transitionPercentage];

[self updateDrawerState:transitionPercentage];
self.currentlyFullscreen = self.contentReachesFullscreen && contentOffset.y > 0;
self.currentlyFullscreen =
self.contentReachesFullscreen && headerTransitionToTop >= 1 && contentOffset.y > 0;
CGFloat fullscreenHeaderHeight =
self.contentReachesFullscreen ? self.topHeaderHeight : [self contentHeaderHeight];

Expand Down

0 comments on commit 6de8286

Please sign in to comment.