Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS SafeArea margin #119

Closed
captainhaddockfr35 opened this issue May 29, 2019 · 2 comments
Closed

iOS SafeArea margin #119

captainhaddockfr35 opened this issue May 29, 2019 · 2 comments

Comments

@captainhaddockfr35
Copy link

captainhaddockfr35 commented May 29, 2019

Which platform(s) does your issue occur on?

  • iOS - iPhone X

Please, provide the following version numbers that your issue occurs with:

  • CLI: 5.2.3
  • Cross-platform modules: 5.3.1
  • Runtime(s): 5.2.1 (Android) & 5.3.1 (iOS)
  • Plugin(s): 9.5.0

Please, tell us how to recreate the issue in as much detail as possible.

With iPhone X, I have a pager that takes all the space of the screen, and I would like it to cover the safe area of the top of the screen but I get a margin that I can not delete. It worked with versions before 9.x

image

Code

<Pager [items]="offersList" #pager [selectedIndex]="currentPagerIndex" (selectedIndexChange)="onIndexChanged($event)"
    class="pager" style="background-color: green; padding-top: 0; margin-top: 0;" iosOverflowSafeArea="true">
    <ng-template let-i="index" let-item="item" style="background-color: blue; margin-top: 0;">
        <StackLayout style="width: 100%; background-color: darkorange; margin-top: 0; " iosOverflowSafeArea="true">
        </StackLayout>
    </ng-template>
</Pager>
@triniwiz
Copy link
Owner

triniwiz commented Aug 9, 2019

update to the latest version

@triniwiz triniwiz closed this as completed Aug 9, 2019
@captainhaddockfr35
Copy link
Author

Hi,
Same problem with NS7 & @nativescript-community/ui-pager :

"@nativescript/core": "~7.0.0"
 "@nativescript-community/ui-pager": "^13.0.0-alpha.10",

image

<Pager
  backgroundColor="orange"
  row="1"
  #pager
  [selectedIndex]="1"
>
  <StackLayout *pagerItem backgroundColor="red" ios:iosOverflowSafeArea="true">
    <label text="First"></label>
  </StackLayout>
  <StackLayout *pagerItem backgroundColor="white">
    <label text="Second"></label>
  </StackLayout>
  <StackLayout *pagerItem backgroundColor="black">
    <label text="Third" color="white"></label>
  </StackLayout>
  <StackLayout *pagerItem backgroundColor="green">
    <label text="Fourth"></label>
  </StackLayout>
</Pager>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants