Notalib / nativescript-webview-ext

Nativescript plugin with extended WebView functionality
Apache License 2.0
76 stars 37 forks source link

Full height not working on iOS #57

Open rvanzon opened 4 years ago

rvanzon commented 4 years ago

Hi,

I am using:

<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded" navigatingTo="navigatingTo" xmlns:ui="@nota/nativescript-webview-ext">
    <GridLayout rows="*" columns="*" class="">
        <ui:WebViewExt id="webview" src="{{ src }}" scrollBounce="false" loadFinished="onWebviewLoadFinished" debugMode="true"  viewPortSize="initial-scale=1.2"></ui:WebViewExt>
    </GridLayout>
    <!-- <Label visibility="{{ !loading ? 'hidden' : 'visible'  }}" text="Bezig met laden..." class="h2 text-center" textWrap="true"/> -->
</Page>

It's expected for the view to be fullscreen, but instead the WebView is about 110 pixels "shorter", positioned correct at the top of the screen though. Using WebView instead of WebViewExt works.

Using p-2 as class of GridLayout kind of works. Only the colors of the safe areas are white then.

Any ideas?

m-abs commented 4 years ago

Hi @rvanzon,

Sorry about the late reply. I'm not sure why it works for upstream webview and not ours.

Could you try with the latest alpha? v6.3.0-alpha.2