Skip to content

Solution for not resizing tabs #42

Description

@davidezanella

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 :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions