capacitor-community / admob

Community plugin for using Google AdMob
MIT License
221 stars 69 forks source link

BannerAdPosition.TOP_CENTER, margin is using margin-bottom instead of margin-top on iOS. #153

Closed vkyeswa closed 10 months ago

vkyeswa commented 2 years ago

Issue Description When using the TOP_CENTER position on a banner in iOS, with a margin say 120 (120px) this pushes the banner out of view. I realized that instead of using margin-top for TOP_CENTER it uses margin-bottom which according to the documentation is meant for BOTTOM_CENTER.

Way around this I have realized that entering -ve values give the desired positioning, say -120 (-120px)

rdlabo commented 2 years ago

I see. plugin use margin for margin-bottom. I will add them to the document. Thanks!