-
AuthorPosts
-
August 28, 2007 at 6:41 pm #122377
Hi, i setup ja-tab1 & ja-tab2 and put some modules there (at bottom, 3 newsflash).
i did configure each newsflash module to show only one news (randomly) with its title, and i saw that title is too big.
then, i add to ja-tab-modules.css:
div#ja-tab-content .contentpagetitle {
font-size: .6em;
}and i get a good one title size, but…
box height (all ja-tab) is still the same as it was when the title was big, so, blank space is show below news.i dont know how to avoid that blank space.
check here: newjornada.com.ar
Bye
Gabriel
August 28, 2007 at 9:30 pm #228277In my situation, the size was driven by how much room the modules reserved in ja-tab1(2). For example, one module was setup by default to show 15 latest thingeys with a resultant huge size. Cutting that size down automatically resized the box.
kashxo Friendkashxo
- Join date:
- April 2007
- Posts:
- 605
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 11
- Thanked:
- 78 times in 40 posts
August 29, 2007 at 5:54 am #228307You can do this manually by modify the CSS file
+ Open file ja-tab-modules.css in the templatesja_telinecss folder
+ Head to the line 10 and you will seediv#ja-tabswrap
and add one more line like thisheight: 200px;
Note: 200px is for example, change it to whatever you prefer. 😀
August 29, 2007 at 7:20 pm #228355thanks for yours answers but they didnt works.
i need some variable size rather than a fixed one.
the problem appear when title (of news) is on. if it is off, then the box is as small as it can.
ill keep trying.
August 29, 2007 at 8:28 pm #228357Ok. i found something else, just posting here to share it.
in index.php is a line: […]<div id=”ja-tab-content”>Â </div>[…]
which render to (if TITLE OFF on newsflash module):
<div style=”height: 32px;” id=”ja-tab-content”>but if i set TITLE ON, that line become:
<div style=”height: 145px;” id=”ja-tab-content”>where is the magic here?
in scripts/ja.scripts.js file (around line 350)[…]
var maxh = 0;
for (var i=0; i<tabcontents.length; i++) {
divobj.innerHTML = tabcontents.innerHTML;
if (maxh < divobj.offsetHeight) maxh = divobj.offsetHeight;
}
tabdisplay.style.height = (maxh – 20) + “px”;
[…]this behavior makes me think that css is applied AFTER this script.
so, the title becomes small after height was already set.im looking howto avoid this.
See ya
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by gabrieldrach 17 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum