Hello all
My page contains special structure for landscape and another one for portrait mood and in each one there is <ion-slide-box> item.
My problem is when switch display from landscape to portrait, this hides ion slide box
And when refresh the page in Firefox, the slide box appears normally !!
@meni it is very difficult to add my code in CodePen, because there is alot of nested Views and a big number of images but I’ll write here the part that related to the problem
and I would like to thank you very much for your interest.
Here alert doesn’t pop up when change display from landscape to portrait, And therefore this part of the code is not applied except when update the page…
The way it is written write now, you have no logic in the view to decide which slidebox to show. So, effectively, you actually have 2 slideboxes on the view at the same time.
I’d start there and see if you can use an ng-if to change the structure of the page so only one slidebox has to be written.
I’m still a bit worried about that. I’m not sure that keeps Ionic from trying to use it. Use your browser’s inspect element option to see if it’s still in the DOM. If it is, I bet Ionic is still seeing it and trying to use it.
I’m not sure that will be a problem necessarily, but I would not want both of those in the DOM at the same time. Especially with images.
Yes, I used firebug and sure, it’s still in the DOM.
and when move mouse over it’s parent <div class="row one"> I see it’s area,
but when I move the mouse over <ion-slide-box> nothing appears in the page :$$
I’ll try to use ng-if
I apologize for my questions that seem perhaps a beginner some thing … but it’s my first app
Thank you very much again