Skip to content

v110.3.0

Compare
Choose a tag to compare
@randallli randallli released this 14 Jul 13:35
· 596 commits to stable since this release

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

Chips

Dialogs

LibraryInfo

NavigationDrawer

TextControls

private/Math

Multi-component changes