-
Notifications
You must be signed in to change notification settings - Fork 80
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
Alignment issue inside Angular2 directives #41
Comments
Can you confirm me whether are you using roundSlider |
Yes, it is the |
I can't reproduce this issue in Angular sample, is there any way to reproduce in my side ? Or can you provide a link hosted this sample to reproduce this ? |
Did you use Angular2 and has created a directive for that and initialized in as I did in the code snippet above? I'll create a repo to reproduce it and I'll post it here, give me one / two days for that, because I also have to setup the Ionic2 environment and so on... |
ya sure, you can share in any of the way.. Meanwhile, as a workaround just try the below code..
Hope this definitly works, since "_updateTooltipPos" function refreshes the tooltip position to center. |
Hi, thanks.. So I tried both ways and that is what I got: It's a hybrid app, so I cannot host it, that is why I need to create a repo. Would you be able to test Ionic2? You would need node, typescript and so on. If you want I can write all the steps in a readonly file when I create the repo. But for now, no worries, as I said, it works if it's not in the directive hooks of Angular2, here is the code which works:
The problem with this code, is that I have other pages using the slider, so there is code replication if I keep like that, that why I want to extract it to a directive, but in the directive we have this problem with the tooltip positioning |
Actually i didn't work on Ionic2 previously however that's not a problem, i will check with any examples and try.. Also i will prepare the environment to work on Ionic 2.. while provide the repo you can share with the steps itself.. so that i can easily test in my side.. thanks :) |
We are developing an App with
Ionic2
wich is built on top ofAngular2
I have the following directive:
This is the final result (value is not centered):
This only happens inside the Angular2 events tho. If I do this inside an ionic2 view event, such as ionViewDidEnter it works fine.
The text was updated successfully, but these errors were encountered: