PDA

View Full Version : DDSmoothmenu Height



dutch
09-15-2013, 04:01 PM
DDSmoothmenu overrides the height method when the browser is IE9. I have another plugin that calls the jquery height method. When this other plugin and ddsmoothmenu are on the same page, any calls to height by the other plugin calls ddsmoothmenu height method. Any ideas on how to correct this so that the jquery height method gets called instead of the ddsmoothmenu height?

Beverleyh
09-15-2013, 05:41 PM
Its hard to offer any advice without the page link to the DD script and a link to the page in your website. We may also need a link to the jQuery script that is causing conflicts too.

Please provide those and then we will be better able to help you.

dutch
09-16-2013, 05:57 PM
I don't have a live website so I can't give you a link to that.

However, if you look at the ddsmoothmenu code you will find this code.


$.extend($.fn, {
height: function(){
var obj = this.get(0);
if(this.size() < 1 || arguments.length || obj === window || obj === document){
return jqheight.apply(this, arguments);
}
return parseFloat(document.defaultView.getComputedStyle(obj, null).getPropertyValue('height'));
}


say you make a jquery call like this


var element = $('#sometable');
var height = $('thead tr:first', element).height();

that call does not return the correct height because the jquery height method does not get called.