...

View Full Version : i have problem with my site js & IE9



m.riyahi
05-19-2012, 09:21 PM
hi
at the first Sorry for my bad english.
I have a joomla at the wrap5.5 framework
I knew my frame work for Regulation module position height have a js function.
this function is ok in IE5 & ff but in IE9 show very tall my module height.
but i dont know what is wrong on this function . i dont know anything about JS.
this function :

(function(e) {
e.fn.matchHeight = function(f) {
var a = 0;
this.each(function() {
a = Math.max(a, e(this).outerHeight())
});
f && (a = Math.max(a, f));
return this.each(function() {
var c = e(this),
b = c.outerHeight() - c.height();
c.css("min-height", a - b + "px")
})
}​

my website:http://www.joomi.ir

m.riyahi
05-20-2012, 03:21 AM
in buttom code ie9 wrong Know "b" value. because when delet "-b" working ok.but i don't know how to campatible this ?
Code:

(function(e) {
e.fn.matchHeight = function(f) {
var a = 0;
this.each(function() {
a = Math.max(a, e(this).outerHeight())
});
f && (a = Math.max(a, f));
return this.each(function() {
var c = e(this),
b = c.outerHeight() - c.height();
c.css("min-height", a - b + "px")
})
}​

my website:http://www.joomi.ir



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum