Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: JComments overflows the content area
Pages: [1]   Go Down
  Print  
Author Topic: JComments overflows the content area  (Read 926 times)
0 Members and 1 Guest are viewing this topic.
Bits Support
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« on: December 15, 2011, 22:05:23 »

Hello All,

I am new to JoomlaTune but I have been working with Joomla for a while now. I am having an issue where my Jcomments are overflowing the content area for the article. Basically instead of the page height auto expanding to fit the JComments (like It would if the article was longer than the default page height or if there were multiple articles on one page) it just overflows it into the bottom section of my site. If anyone would like to take a look please go here http://bitsltd.net/community/green-technology-blog/83-the-sug7-has-arrived.

The funny thing is that sometimes it will be almost correct (the send button is just past the main content area) but other times it will be very obvious (everything below the text box for the users comment will be below the main content area). I have attached a screen shot of the issue.

Any Help is appreciated.


* jcomments-overflow.png (163.72 KB, 1098x800 - viewed 48 times.)
« Last Edit: December 15, 2011, 22:30:01 by Bits Support » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: December 15, 2011, 23:17:34 »

This is because you have an element with fixed height:

Code:
<div class="main-height" style="height: 1349px;">

I am not sure if height is set in code or via JavaScript. I can suggest you to use FireBug extension for FireFox browser to easy find any CSS style information.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Bits Support
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #2 on: December 16, 2011, 00:15:27 »

This is because you have an element with fixed height:

Code:
<div class="main-height" style="height: 1349px;">

I am not sure if height is set in code or via JavaScript. I can suggest you to use FireBug extension for FireFox browser to easy find any CSS style information.


I currently use firebug and I will look to see what is setting the page height. Thanks for taking the time to look and give me a hand. I will post my findings and the outcome for you when I am done. Thanks again!
Logged
Bits Support
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #3 on: December 16, 2011, 00:59:07 »

So I looked at the

Code:
<div class="main-height" style="height: XXpx;>

and it says it's an element.style (meaning that the css is inline). I then looked at the template's html but any thing that is class="main-height" does not have an inline height declaration. What would set it to that height?

When I used firebug and put the height to auto it displayed right. How would I do this do you know which file it is or if there is a param I can set?
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #4 on: December 16, 2011, 01:55:47 »

I've found JavaScript which sets height:

Code:
<script type="text/javascript" src="/templates/rt_versatility4_j15/js/roksameheight.js"></script>

I do not know how this script is important for this template but you can try to disable it.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Bits Support
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #5 on: December 16, 2011, 03:09:39 »

OK so I stopped including the same height js file and that did solve the issue. However without it a page that has a side col (rightcol) enabled will not display 100% correctly. Basically it had a border but without the same height js file it doen't put the border the whole length of the page. See screen shots.

I would like to change that js file to where it makes the height auto but I have no idea how.


* Border issue.png (423.01 KB, 928x645 - viewed 39 times.)
Logged
Bits Support
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #6 on: December 16, 2011, 03:10:06 »

2nd screen shot


* Border issue2.png (397.41 KB, 950x658 - viewed 34 times.)
Logged
Bits Support
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #7 on: January 23, 2012, 23:06:45 »

Hello,

Has anyone had the chance to read my issue and supply a suggested solution? Any help is appreciated!

Thanks!
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: JComments overflows the content area
 
Jump to: