This repository was archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Copy link
Copy link
Open
Description
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.
- Click on Details 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>
pacome2017
Metadata
Metadata
Assignees
Labels
No labels


