Closed vshkl closed 3 years ago
This PR fixes Alert may has extra bottom margin when displayed with Gravity.BOTTOM issue. Getting navigationBarHeight by subtracting (usableScreenHeight) and all possible cutouts (cutoutsHeight) from the physical screen height (physicalScreenHeight).
navigationBarHeight
usableScreenHeight
cutoutsHeight
physicalScreenHeight
Hey @vshkl, this looks great! Thanks for getting to this so swiftly! Before we merge, please update the library version in the build.gradle, and update the changelog.
@kpmmmurphy, done.
What this PR does:
This PR fixes Alert may has extra bottom margin when displayed with Gravity.BOTTOM issue. Getting
navigationBarHeight
by subtracting (usableScreenHeight
) and all possible cutouts (cutoutsHeight
) from the physical screen height (physicalScreenHeight
).Demos left to right: