Riron / ionic-img-viewer

Ionic 2+ component providing a Twitter inspired experience to visualize pictures.
MIT License
283 stars 118 forks source link

Nothing happen when imageViewer is placed inside a super-tab page #62

Closed Alb93 closed 7 years ago

Alb93 commented 7 years ago

Hi!

I use super-tabs elements in this way:

<super-tabs > <super-tab [rootParams]="subcategory" [swipeBackEnabled]="false" [root]="page1" [title]="showTitles? 'Immagine' : ''" [icon]="showIcons? 'image': ''" id="page1"></super-tab> <super-tab [rootParams]="subcategory" [root]="page2" [title]="showTitles? 'Descrizione' : ''" [icon]="showIcons? 'clipboard' : ''" id="page2"></super-tab> </super-tabs>

The component is similar to the classical tabs in ionic. Specifications can be found here: https://github.com/zyra/ionic2-super-tabs.

Well, one of this page(page1) is like `

`

but nothing happen on click. Instead all is fine out of this component.

Running ionic info:

global packages:

@ionic/cli-utils : 1.3.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.3.0

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.3.0
@ionic/cli-plugin-ionic-angular : 1.3.0
Cordova Platforms               : android 6.2.3 browser 4.1.0
Ionic Framework                 : ionic-angular 3.3.0

System:

Node       : v7.10.0
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
sebastianovide commented 7 years ago

did you work around it ?

Alb93 commented 7 years ago

Nope. Switching to https://github.com/sarriaroman/photoviewer has been my solution.

Riron commented 7 years ago

Do you have the same problem @sebastianovide ? I didn't have time to reproduce the bug yet, I'll probably do it this week. But the new way of opening the viewer (trigger through code) landing shortly might help with that.

Riron commented 7 years ago

Code trigger is now available in ionic-img-viewer@2.4.0. Maybe that can help 😄

Riron commented 7 years ago

@Alb93 I just tried your ionic2-super-tabs setup and it's working as expected on my laptop... You don't have any error in the console ?

@sebastianovide do you have the exact same problem ?

dkd051 commented 7 years ago

I have same problem. I am using ionic2-super-tabs too. image Gesture is working but viewer doesn't shows.

.ion-page has zero opacity.

dkd051 commented 7 years ago

suddenly It works very well even I didn't do anything.