Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • myuption Friend
    #174190

    I’m trying to set up an old site into JA Nex. So far I’m having some issues, here I’ll ask for help for one in particular.

    I’m near to set up the top modules. It’s something strange, but the second column, or sl1-2, is giving me a headache, I have set up the JA News Pro module to work without images. The category I want to feature only has text.

    Either way, that module is forcing a 706px height, have searched all over, but it seems it is set on the fly. I’d want the module to set the height automatically. Is that possible?

    Attached an image


    1. segnex
    TomC Moderator
    #439570

    Can you provide the url of the site you’re working on – as well as set “Optimmize CSS” to “No” within your Template Manager–General Settings ??

    myuption Friend
    #439702

    Ok, just uploaded this into a test site, the same issue, and join & minify are disabled.

    Please use this link, if you need login info, it is attached to the first post, thanks! 🙂

    http://bit.ly/zB5uPZ

    myuption Friend
    #439905

    Any help would be appreciated 😉

    myuption Friend
    #440159

    I think this will work for this issue:

    Disable min-height in sl-2 module

    templates/ja_nex/js/more.js

    Replace:

    function equalHeightEx(els, selector) {
    els = $$_(els);
    if (!els || els.length < 2) return;
    var maxh = 0;
    var els_ = [];
    els.each(function(el, i){
    if (!el) return;
    els_ = getDeepestWrapperEx (el, selector);
    //els_ = el;
    var ch = els_.getCoordinates().height;
    maxh = (maxh < ch) ? ch : maxh;
    },this);

    els_.each(function(el, i) {
    if (!el) return;
    if (el.getStyle('padding-top')!=null && el.getStyle('padding-bottom')!=null) {
    if (maxh-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt() > 0) {
    el.setStyle('min-height', maxh-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt());
    }
    } else {
    if (maxh > 0) el.setStyle('min-height', maxh);
    }
    }, this);
    }

    With this, or simply remove it.

    /**function equalHeightEx(els, selector) {
    els = $$_(els);
    if (!els || els.length < 2) return;
    var maxh = 0;
    var els_ = [];
    els.each(function(el, i){
    if (!el) return;
    els_ = getDeepestWrapperEx (el, selector);
    //els_ = el;
    var ch = els_.getCoordinates().height;
    maxh = (maxh < ch) ? ch : maxh;
    },this);

    els_.each(function(el, i) {
    if (!el) return;
    if (el.getStyle('padding-top')!=null && el.getStyle('padding-bottom')!=null) {
    if (maxh-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt() > 0) {
    el.setStyle('min-height', maxh-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt());
    }
    } else {
    if (maxh > 0) el.setStyle('min-height', maxh);
    }
    }, this);
    }**/

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  myuption 12 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum