Skip to content

Tabview not working correctly on ios #1173

Description

@bnbs

This only happens on iOS 11. I tested on iOS 10, android and this error did not occur.

Code:

<GridLayout rows="50,*" columns="*">
    <TabView row="0" col="0" #tabview androidSelectedTabHighlightColor="#1e3d52" (selectedIndexChanged)="onSelectedIndexChanged($event)"
        actionBarTitle>
        <StackLayout *tabItem="{title: 'ABERTOS'}"></StackLayout>
        <StackLayout *tabItem="{title: 'SINCRONIZADOS'}"></StackLayout>
    </TabView>
    <StackLayout row="1" col="0" orientation="vertical" class="stacklayout-pedidos-backgroud" [formGroup]="form">
        <SearchBar formControlName="Pesquisa" class="searchbar-default" (loaded)="onSearchBarLoaded($event)"></SearchBar>
    </StackLayout>
</GridLayout>

captura de tela 2018-01-27 as 12 27 25

captura de tela 2018-01-27 as 12 27 43

Activity

  1. self-assigned this
    on Jan 29, 2018
  2. tsonevn commented on Jan 29, 2018

    @tsonevn
    Contributor

    Hi @bnbs,
    Thank you for reporting this issue,
    I tested it on my side and have to confirm that this is a real issue, which could be reproduced on iOS 11.
    For further info, I would suggest keeping track on the issue.

  3. added this to the 6.0 milestone on Feb 6, 2018
  4. modified the milestones: 6.0, 6.1 (TBD) on May 30, 2018
  5. modified the milestones: 6.1 (TBD), next on Jul 18, 2018
  6. yoat commented on Dec 5, 2018

    @yoat

    I'm using NativeScript 5 on iOS 12.1 and there is a similar issue, perhaps related.

    When you rotate from portrait to landscape the position of the top of the content in the tabview shifts down. This only occurs on the portrait-to-landscape transition, not the opposite. It also only affects the tab that is visible during the rotation. The end result is that rotating one tab then switching to another which have the tops of those tabs out of alignment.

  7. modified the milestones: 6.2 (TBD), vNext on Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions