nativescript-google-maps-sdk icon indicating copy to clipboard operation
nativescript-google-maps-sdk copied to clipboard

Map size in Tabs Component too large on IOS

Open Panimaster opened this issue 4 years ago • 0 comments

TNS Version 6.7.4 Angular 8.2.14

On IOS devices (specifically on IOS devices with safe areas) the map size is different when used within a Tabs component which leads to a partly cropped Google logo.

Code with Tabs component:

<Tabs iosOverflowSafeArea="true" (loaded)="modalLoaded($event)">
    <TabContentItem iosOverflowSafeArea="true">
        <GridLayout iosOverflowSafeArea="true">
            <ng-container *ngIf="mapVisible">
                <MapView row="0" iosOverflowSafeArea="false" (touch)="onMapTouch($event)"
                    (mapReady)="onMapReady($event)" (cameraChanged)="onCameraChanged($event)">
                </MapView>
            </ng-container>
        </GridLayout>
    </TabContentItem>
</Tabs>

Code without Tabs component:

<GridLayout (loaded)="modalLoaded($event)"  iosOverflowSafeArea="true">
    <ng-container *ngIf="mapVisible">
        <MapView row="0" iosOverflowSafeArea="false" (touch)="onMapTouch($event)"
            (mapReady)="onMapReady($event)" (cameraChanged)="onCameraChanged($event)">
        </MapView>
    </ng-container>
</GridLayout>
Screenshot 2020-07-02 at 18 32 27 Screenshot 2020-07-02 at 18 33 34

Panimaster avatar Jul 03 '20 05:07 Panimaster