marcojak / MauiMTAdmob

MIT License
104 stars 17 forks source link

Incorrect positioning of advert on screen #45

Open pgmariotti opened 7 months ago

pgmariotti commented 7 months ago

The window consists of a vertical stack containing: Horizontal stack Horizontal stack Collection View MTAdView

Because the ad takes some time to connect to its source, the CollectionView occupies ALL thescreen available to it and when the ad arives it shows on top of the last item in the CollectionView. If MTAdView control is moved before the CollectionView everything works correctly. It seems like the MtAdMob does not request height unless the ad has arrived...

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:edt="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs" xmlns:sfl="clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView" xmlns:local="clr-namespace:Freezy.ViewModels" xmlns:model="clr-namespace:Freezy.Data" xmlns:fv="clr-namespace:Freezy.Views" xmlns:converters="clr-namespace:Freezy" xmlns:controls="clr-namespace:Plugin.MauiMTAdmob.Controls;assembly=Plugin.MauiMtAdmob" x:Class="Freezy.Views.RemovePage">