Skip to content
This repository was archived by the owner on Jun 15, 2024. It is now read-only.
This repository was archived by the owner on Jun 15, 2024. It is now read-only.

Pdf Becomes Gray when switching between tabs in TabView #37

Description

@AliKalkandelen

Hello,

Im using a tabview in a page and the Pdf is in one tab and the details of the invoice are in the other tab.
ONLY on ios the pdf shows, but when i switch tabs and go back to the pdf the pdf screen is just a gray background you cant see the pdf.

Repro Steps:
1)Open Invoice

  1. Click on Details Tab

3)Click back on Invoice Tab

The HTML
↓↓↓↓↓↓↓

<Shared-ActionBar [pageTitle]='"Invoice #: " + invoiceID'></Shared-ActionBar>

<TabView selectedTabTextColor="#012d6b" id="tabViewContainer" androidTabsPosition="bottom" androidSelectedTabHighlightColor="#012d6b">
        <StackLayout *tabItem="{title: 'PDF', iconSource: 'res://pdf'}">
                <FlexboxLayout>
                                <Button text="Approve" class="font-awesome btn btn-secondary pull-left" (tap)="showModal('approving')" icon="~/images/check.png"></Button>
                                <Button text="Reject"  class="font-awesome btn btn-secondary pull-right"(tap)="showModal('rejecting')" ></Button>
                </FlexboxLayout>
                <ActivityIndicator [busy]="_app.isLoading" *ngIf="_app.isLoading" width="100" height="100" class="activity-indicator" horizontalAlignment="center"
            verticalAlignment="center"></ActivityIndicator>
                <PDFView *ngIf="!_app.isLoading"  [src]="pdfUrl"></PDFView>
        </StackLayout>
        <FlexboxLayout *tabItem="{title: 'Invoice Details', iconSource: 'res://details'}">             
                <GridLayout rows="auto, auto, auto, auto, auto, auto" columns="auto, auto">
                    <Label text="Department: " class="h3" row="0" col="0"></Label>
                    <Label [text]="invoiceDetails.Department_Text" class="h3" row="0" col="1"></Label>
                    <Label text="Location: " class="h3" row="1" col="0"></Label>
                    <Label [text]="invoiceDetails.Location_Text" class="h3" row="1" col="1" textWrap="true"></Label>
                    <Label text="Expense Code: " class="h3" row="2" col="0"></Label>
                    <Label [text]="invoiceDetails.Expense_Text" class="h3" row="2" col="1"></Label>
                    <Label text="Amount: " class="h3" row="3" col="0"></Label>
                    <Label [text]="invoiceDetails.Invoice_Details_Amount.toFixed(2)" class="h3" row="3" col="1"></Label>
                    <Label text="Tax: " class="h3" row="4" col="0"></Label>
                    <Label [text]="invoiceDetails.Invoice_Details_Tax" class="h3" row="4" col="1"></Label>
                    <Label text="Subtotal: " class="h3" row="5" col="0"></Label>
                    <Label [text]="invoiceDetails.Subtotal" class="h3" row="5" col="1"></Label>
                </GridLayout>
        </FlexboxLayout>
</TabView>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions