Problem with "height" in html page with Firefox

GK User
Mon Oct 25, 2010 8:50 pm
Hi all,

after all sorry for my poor english :(

I'm Francesco from Italy, a new satisfied user. The Sporter template is wonderful but now I've encountered a problem in my website

The html page: http://legabaronibirra.altervista.org/i ... Itemid=102

it's correctly visible within IE while there is a problem with my favourite browser Firefox.

Can anyone help me? Thanks a lot for support!

Francesco
User avatar
Fresh Boarder

GK User
Wed Oct 27, 2010 6:04 pm
Hi all,

no one of Gavickpro Staff can help me?

Thanks,
Francesco
User avatar
Fresh Boarder

teitbite
Wed Oct 27, 2010 8:05 pm
Hi

It's because this 3rd party component. I suggest to write to the developers for help because something is badly wrong there about the height placed in the style.

Meanwhile You can try this code to fix it:

Code: Select all
iframe#blockrandom {
height:1400px !important;
}
User avatar
Moderator

GK User
Wed Oct 27, 2010 10:35 pm
Hi,

thanks for suggestion.
Where I could insert the code?

Thanks a lot,
Francesco
User avatar
Fresh Boarder

GK User
Wed Oct 27, 2010 10:55 pm
Hi

You can place it on gk_stuff.css file... but, if i were you i would enable override.css file on template parameters and them add this code on this file.
Why? Because it will be less confuse for you if you need to update css files from updates.

Cheers ;)
User avatar
Platinum Boarder

GK User
Wed Oct 27, 2010 11:04 pm
Hi,

I have enable override.css file on template and add the code...

Wow! It works!!!

Many thanks for the support!

Francesco
User avatar
Fresh Boarder

GK User
Wed Oct 27, 2010 11:08 pm
Sorry but now all html wrapper pages have height:1400px

:(
User avatar
Fresh Boarder

GK User
Wed Oct 27, 2010 11:16 pm
Please try this code instead:

Code: Select all
#blockrandom {height:1400px !important;}
User avatar
Platinum Boarder

GK User
Wed Oct 27, 2010 11:22 pm
Unfortunately doesn't works :(

All html wrapper pages are 1400px, as you can see on my website.

Any other suggestion?
User avatar
Fresh Boarder

GK User
Wed Oct 27, 2010 11:59 pm
Well... naturally because from what i can see, other wrapper pages have the same iframe ID (blockrandom)... so it will effect all iframe with this iframe id.

Sorry but i can see other solution. :dry:

Personally, i'm not a big fan of iframe
User avatar
Platinum Boarder

GK User
Thu Oct 28, 2010 12:13 am
:(

The problems seems to be in this fuction, correct?

function iFrameHeight() {
var h = 0;
if ( !document.all ) {
h = document.getElementById('blockrandom').contentDocument.height;
document.getElementById('blockrandom').style.height = h + 60 + 'px';
} else if( document.all ) {
h = document.frames('blockrandom').document.body.scrollHeight;
document.all.blockrandom.style.height = h + 20 + 'px';
}
}


If I remove this code? What is your opinion?

Thanks again,
Francesco
User avatar
Fresh Boarder

GK User
Thu Oct 28, 2010 12:48 am
Mate, i really... really don't like iframes. :dry:
i suppose that it will not work... but you can try it.

This script freezes my firebug.
Unbelievable number of functions called. :blink:

My honest suggestion... drop this feature on your website.
User avatar
Platinum Boarder


cron