Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tabs] Correct MDCTabBarView behavior for contentInset. (#8512)
When `contentInset` is non-zero, MDCTabBarView was misplacing the tabs views.
This PR corrects the issue by making the following changes:
* Clustered Fixed tabs now set the `contentSize` to fill the entire safe area
bounds.
* Justified tabs tabs now expand the `contentSize` to fill at least the entire safe
area bounds.
* Right-aligned tabs position tabs views only within the content area and no
longer depend on the min-X position of the bounds.
* Rendering the divider line at the end of `layoutSubviews` to handle cases
where scrolling adjusted the X-offset of the bounds.
Fixes #8236
- Loading branch information
Robert Moore
committed
Sep 27, 2019
1 parent
2420eba
commit 86b5971
Showing
3 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...wSnapshotTests/testCustomInsetsTopAndRightRepositionsJustifiedViews_11_2@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...testSafeAreaAndContentInsetCombineTopAndLeftForJustifiedLayoutStyle_11_2@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.