-
AuthorPosts
-
myuption Friend
myuption
- Join date:
- November 2006
- Posts:
- 161
- Downloads:
- 20
- Uploads:
- 23
- Thanks:
- 58
- Thanked:
- 6 times in 1 posts
February 23, 2012 at 12:49 am #174190I’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
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
February 23, 2012 at 3:45 am #439570Can 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 Friendmyuption
- Join date:
- November 2006
- Posts:
- 161
- Downloads:
- 20
- Uploads:
- 23
- Thanks:
- 58
- Thanked:
- 6 times in 1 posts
February 23, 2012 at 5:46 pm #439702Ok, 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! 🙂
myuption Friendmyuption
- Join date:
- November 2006
- Posts:
- 161
- Downloads:
- 20
- Uploads:
- 23
- Thanks:
- 58
- Thanked:
- 6 times in 1 posts
February 24, 2012 at 6:19 pm #439905Any help would be appreciated 😉
myuption Friendmyuption
- Join date:
- November 2006
- Posts:
- 161
- Downloads:
- 20
- Uploads:
- 23
- Thanks:
- 58
- Thanked:
- 6 times in 1 posts
February 26, 2012 at 4:54 pm #440159I 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);
}**/AuthorPostsViewing 5 posts - 1 through 5 (of 5 total)This topic contains 5 replies, has 2 voices, and was last updated by myuption 12 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Height in frontpage second column fixed?
Viewing 5 posts - 1 through 5 (of 5 total)