Results 1 to 3 of 3

Thread: DDSmoothmenu Height

  1. #1
    Join Date
    Sep 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DDSmoothmenu Height

    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?

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,937
    Thanks
    16
    Thanked 303 Times in 302 Posts
    Blog Entries
    11

    Default

    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.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Sep 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

    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

    Code:
    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.
    Last edited by james438; 09-16-2013 at 08:38 PM.

Similar Threads

  1. ddsmoothmenu not "over-lapping" another ddsmoothmenu
    By embryo1 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 12-02-2009, 08:09 PM
  2. Replies: 0
    Last Post: 08-11-2009, 06:19 AM
  3. Replies: 2
    Last Post: 11-04-2007, 05:21 PM
  4. Replies: 0
    Last Post: 08-06-2007, 06:12 AM
  5. Setting a division's height based on Screen Height.
    By xstayxstrongx in forum JavaScript
    Replies: 1
    Last Post: 01-27-2006, 03:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •