Skip to content
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

Solution for not resizing tabs #42

Open
davidezanella opened this issue Apr 29, 2016 · 0 comments
Open

Solution for not resizing tabs #42

davidezanella opened this issue Apr 29, 2016 · 0 comments

Comments

@davidezanella
Copy link

I've found a solution for the problem of the height of the tabs, otherwise all the tabs have the same height even if one has less element.

Into the controller i've create a function which is called when the tab change and is passed the $index of the element and in this method i've put this lines of code:
`
$scope.update = function(index){

    angular.element(".slider")[0].style.height = "auto";
    var height = angular.element(angular.element("ion-slide")[index]).height();
    angular.element(".slider")[0].style.height = height + "px";

}
`
Try this and let me know if it works.
Hope it could help someone else :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant