Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions angular-vertilize.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
restrict: 'EA',
require: '^vertilizeContainer',
link: function(scope, element, attrs, parent){

// Get scale
var scale = (attrs.vertilize)?(attrs.vertilize):(1);

// My index allocation
var myIndex = parent.allocateMe();

Expand All @@ -76,7 +80,7 @@
visibility: 'hidden'
});
element.after(clone);
var realHeight = clone.height();
var realHeight = (1/scale)*clone.outerHeight(true);
clone['remove']();
return realHeight;
};
Expand All @@ -91,7 +95,7 @@
// Watch for tallest height change
scope.$watch(parent.getTallestHeight, function(tallestHeight){
if (tallestHeight){
element.css('height', tallestHeight);
element.outerHeight(scale*tallestHeight, true);
}
});
}
Expand Down