Skip to content

Instantly share code, notes, and snippets.

@Maqsim
Created May 15, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maqsim/a660b5624d05249b704c to your computer and use it in GitHub Desktop.
Save Maqsim/a660b5624d05249b704c to your computer and use it in GitHub Desktop.
Set all title by max height
var maxTitleHeight = angular
.element('.tracker_title')
.map(function() {
return angular.element(this).height();
});
maxTitleHeight = Math.max.apply(this, maxTitleHeight);
angular
.element('.tracker_title')
.css('height', maxTitleHeight);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment