Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tabs] Fix
contentFrame
for item view. (#7782)
The content frame should be:
* `titleLabel` frame using its `intrinsicContentSize` if there is no image.
* `iconImageView` frame if there is no title text.
* `titleLabel` fitting size for width, a height that covers both the image and title view.
Closes #7781
- Loading branch information
Robert Moore
committed
Jul 3, 2019
1 parent
88e5a52
commit 0881659
Showing
6 changed files
with
234 additions
and
6 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
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
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
Binary file added
BIN
+1.93 KB
..._64/MDCTabBarViewItemViewSnapshotTests/testContentFrameForImageOnly_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.
Binary file added
BIN
+2.8 KB
.../MDCTabBarViewItemViewSnapshotTests/testContentFrameForTextAndImage_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.
Binary file added
BIN
+1.74 KB
...s_64/MDCTabBarViewItemViewSnapshotTests/testContentFrameForTextOnly_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.