-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
pageB has ion-segment in ion-navbar, when push A to B, there has a white blank between A and B. #12955
Comments
same problem here : flickering when i switch page from a navbar with push and pop. |
Hello! Thank you for opening an issue with us! Would you be able to provide a sample application via GitHub that demonstrates the issue you are having? Thanks for using Ionic! |
@kensodemann hi, thank you for your reply, this is github example. |
@longdw - tried running your sample but cannot. |
@longdw any chance you could update your example? It's missing functionality so we cannot test it . Either way, could you follow:
|
@kensodemann @mhartington I uploaded a new code, example |
this question still exists. @kensodemann @mhartington |
@longdw sorry, thought I hit reply on this. So the issue you're seeing is really due to the multiple ion-contents in the second page. There should only ever be ONE ion-content in a page, otherwise, you get unexpected results. For example, to rework the setup you had, I applied this patch to diff --git a/src/pages/home/home.html b/src/pages/home/home.html
index 5621ad4..e235287 100644
--- a/src/pages/home/home.html
+++ b/src/pages/home/home.html
@@ -12,9 +12,10 @@
</ion-navbar>
</ion-header>
-<ion-content style="background-color: #f5f0eb" [ngSwitch]="type">
- <ion-content *ngSwitchCase="1">
-
+<ion-content >
+ <div [ngSwitch]="type">
+ <div *ngSwitchCase="1">
+
<ion-card tappable *ngFor="let item of guardDatas;let i = index;" (click)="itemClick1(item)">
<ion-card-content class="list-style">
<div class="main-title" style="display: flex;">
@@ -28,13 +29,13 @@
删除
</button>
</div>
-
+
</ion-card-content>
</ion-card>
- </ion-content>
+ </div>
+
+ <div *ngSwitchCase="2">
- <ion-content *ngSwitchCase="2">
-
<ion-list tappable *ngFor="let item of datas;let i = index;" (click)="itemClick2(item)">
<ion-item *ngFor="let item of departDatas">
<ion-label>
@@ -42,5 +43,6 @@
</ion-label>
</ion-item>
</ion-list>
- </ion-content>
-</ion-content>
\ No newline at end of file
+ </div>
+ </div>
+</ion-content> Because the ion-content is no longer part of dynamic content directly, and the child elements are all divs, the animations runs smooth. |
thank you very much. @mhartington |
there has some issue, I add |
Put the https://ionicframework.com/docs/api/components/refresher/Refresher/ Here's my markup |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Resources:
Before submitting an issue, please consult our troubleshooting guide (http://ionicframework.com/docs/troubleshooting/) and developer resources (http://ionicframework.com/docs/developer-resources/)
Please make sure you are posting an issue pertaining to the Ionic Framework. If you are having an issue with the Ionic Pro services (Ionic View, Ionic Deploy, etc.) please consult the Ionic Pro support portal (http://support.ionicjs.com)
Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x ] 3.x
[ ] 4.x
I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
Please do not submit support requests or "How to" questions here. Instead, please use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
pageB has ion-segemnt in ion-navbar, when I push pageA to pageB or pageB back to pageA, there has a white blank between pageA and pageB.
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):test on ios10 or ios11
The text was updated successfully, but these errors were encountered: