material-components-ios-codelabs icon indicating copy to clipboard operation
material-components-ios-codelabs copied to clipboard

Bug fix: Bottom App Bar incorrect offset

Open lane-faison opened this issue 6 years ago • 3 comments

When adding the Bottom App Bar to a view AND setting the value for isFloatingButtonHidden to true, the Bottom App Bar is shifted down 38px, and cannot be placed in the correct position without setting this value to 0.

This problem was discovered on iOS 13.1, iPhone 8+

In the picture below, the Bottom App Bar was added, and was pinned to the leading, trailing, and bottom edge of the superview, with a height of 56.

Before: static const CGFloat kMDCBottomAppBarNavigationViewYOffset = 0; Screen Shot 2019-10-11 at 11 01 48 AM

After: static const CGFloat kMDCBottomAppBarNavigationViewYOffset = 0; Screen Shot 2019-10-11 at 11 02 52 AM

lane-faison avatar Oct 11 '19 17:10 lane-faison

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

googlebot avatar Oct 11 '19 17:10 googlebot

@googlebot I signed it!

lane-faison avatar Oct 11 '19 17:10 lane-faison

@googlebot I signed it!

mehulparmar4ever avatar Sep 09 '21 15:09 mehulparmar4ever