Skip to content

[Tabs][iOS]: Highlighter change its position when app is minimised (in background) #8027

@Natalia-Hristova

Description

@Natalia-Hristova

Environment
tns-core-modules: 6.2.0-rc-2019-10-25-193201-01

Describe the bug
When use tabs and minimised the app (open some other app) the highlighter(the line under the icon and tab text) of the selected tab is changed. It seems like the first tab was the selected one.
Note: The content of the tab is not changed, only the highlighter.

To Reproduce

  1. Create app that use Tabs
  2. Select one of the tabs except the first one that is the default selected
  3. Minimise the app e.g. open another app
  4. Go back to your app with the Tabs
 <StackLayout>
                <Tabs height="400px">
                    <TabStrip>
                        <TabStripItem>
                            <Label text="Home"></Label>
                            <Image src="res://home"></Image>
                        </TabStripItem>
                        <TabStripItem>
                            <Label text="Settings"></Label>
                            <Image src="res://settings"></Image>
                        </TabStripItem>
                        <TabStripItem>
                            <Label text="Search"></Label>
                            <Image src="res://search"></Image>
                        </TabStripItem>
                    </TabStrip>
                    <TabContentItem>
                        <GridLayout>
                            <Label text="Home Page" class="h2 text-center">
                            </Label>
                        </GridLayout>
                    </TabContentItem>
                    <TabContentItem>
                        <GridLayout>
                            <Label text="Settings Page"
                                class="h2 text-center">
                            </Label>
                        </GridLayout>
                    </TabContentItem>
                    <TabContentItem>
                        <GridLayout>
                            <Label text="Search Page" class="h2 text-center">
                            </Label>
                        </GridLayout>
                    </TabContentItem>
                </Tabs>
            </StackLayout>

Expected behavior
The selected tab to be saved when the app is minimised

Sample project

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions