Untitled

mail@pastecode.io avatar
unknown
plain_text
17 days ago
734 B
2
Indexable
Never
$('.we-mega-menu-li .we-mega-menu-li').hover(
  

  function() {
    var alturaElemento = $('#block-axway2020-menumain-2 .group-two ul .we-mega-menu-li:hover > .we-mega-menu-submenu').height();
    var alturaElemento2 = $('#block-axway2020-menumain-2 .group-two .we-mega-menu-col .nav-tabs').height();

    if( alturaElemento2 > alturaElemento){
      var alturaElemento = $('#block-axway2020-menumain-2 .group-two .we-mega-menu-col .nav-tabs').height();
    }
    $('.we-mega-menu-submenu-inner').css({
      'min-height': alturaElemento,
      'height': alturaElemento
    });
  },
  function() {
    $('.we-mega-menu-submenu-inner').css({
      'min-height': 'initial',
      'height': 'initial'
    });
  }
);
Leave a Comment