v110.3.0
110.3.0
In this release we switched button to use a centerVisibleArea
over the visibleAreaInsets
because it is more versitile. We made improvements to TextControl's layout as well. Bottom drawer can now respond to iPad Slide Over layout changes.
New deprecations
Deprecated method setVisibleAreaInsets:forShape:inMode:
in MDCFloatingButton
. Consider using setCenterVisibleArea:forShape:InMode:
to adjust visible area.
New features
Buttons
Button can now center the visible area so that the button's frame can maintain a touchable size.
CGSize containedButtonSize = [containedButton sizeThatFits:CGSizeZero];
CGFloat containedButtonHeight =
MAX(kMinimumAccessibleButtonSize.height, containedButtonSize.height);
CGFloat containedButtonWidth = MAX(kMinimumAccessibleButtonSize.width, containedButtonSize.width);
containedButton.frame = CGRectMake(0, 0, containedButtonWidth, containedButtonHeight);
containedButton.centerVisibleArea = YES;
NavigationDrawer
Bottom Drawer response to iPad Slide Over layout changes when the adjustLayoutForIPadSlideOver
flag is used.
bottomDrawer.adjustLayoutForIPadSlideOver = YES;
API changes
Buttons
new property: centerVisibleArea
in MDCButton
new method: setCenterVisibleArea:forShape:inMode:
in MDCFloatingButton
NavigationDrawer
new property: adjustLayoutForIPadSlideOver
in MDCBottomDrawerPresentationController
new property: adjustLayoutForIPadSlideOver
in MDCBottomDrawerViewController
Component changes
Buttons
- Add centerVisibleArea support for the FAB and deprecate visibleAreaMode API. (Wenyu Zhang)
- Add centerVisibleArea to MDCButton and mark visibleAreaInsets as to be deprecated. (Wenyu Zhang)
- Add safeguard to avoid overwriting centerVisibleArea with the same value. (Wenyu Zhang)
Chips
- Remove visibleAreaInsets usage in examples with their corresponding snapshot tests. (Wenyu Zhang)
- Use MAX to decide the size of visible area instead of CGSizeZero. (Wenyu Zhang)
Dialogs
LibraryInfo
- Add "k" to string const to fix clang-tidy (Cody Weaver)
NavigationDrawer
- Automated g4 rollback of changelist 319253730. (Nobody)
- Fix bug - New task options don’t have enough padding in iPad Slide Over. (Nobody)
TextControls
- Fix line counting mechanism in text areas (Andrew Overton)
private/Math
- Delete MDCVisibleAreaInsetsForMinimumTappability. (Wenyu Zhang)
Multi-component changes
- Make text fields without floating labels shorter (Andrew Overton)