Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Equal Heights View modes: 
User avatar
Member
Member
lwhittemore-emh - 10/24/2012 9:11:23 AM
   
Equal Heights
Just curious if any one has had any luck with any sort of equal height scripts (preferably jQuery) I have one that works great with standard HTML pages, but has issues when it is used in conjunction with repeaters.

The problem ends up being that the equal height boxes set their size before the transformation is finished loading content and ends up being a very small box.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/25/2012 7:04:24 AM
   
RE:Equal Heights
Hi,

could you please provide more details about your script? Could you please share it with us?

Thank you in advance.

Ivana Tomanickova

User avatar
Member
Member
lwhittemore-emh - 10/25/2012 2:04:35 PM
   
RE:Equal Heights
I found this and it seems to work.

(function($) {

$.fn.equalHeight = function(){
var height = 0,
reset = $.browser.msie ? "1%" : "auto";

return this
.css("height", reset)
.each(function() {
height = Math.max(height, this.offsetHeight);
})
.css("height", height)
.each(function() {
var h = this.offsetHeight;
if (h > height) {
$(this).css("height", height - (h - height));
};
});

};

})(jQuery);

User avatar
Member
Member
16vMonkey - 2/22/2013 5:14:22 AM
   
RE:Equal Heights
i'm looking for something like this for my product grid - can you elaborate a little more on how to implement it?

User avatar
Kentico Consulting
Kentico Consulting
richards@kentico.com - 2/27/2013 2:06:06 AM
   
RE:Equal Heights
Hello,

could you please provide us with more information regarding the goal you are trying to achieve so we can give you the most precise answer?

From your question Im not sure what you are trying to do and where.

Best regards,
Richard Sustek