🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #50322

Re: Chrome ucina content przy skrypcie equal jQuery

#50322
From: hazet
Date: Wed, 06 Oct 2010 18:08
53 lines
2145 bytes
hazet pisze:
> Witam,
> 
> oto skrypt wykorzystujący jquery:
> 
> function equalHeight(group) {
>     tallest = 0;
>     group.each(function() {
>         thisHeight = $(this).height();
>         if(thisHeight > tallest) {
>             tallest = thisHeight;
> }
> });
>     group.height(tallest);
> }
> $(document).ready(function() {
>     equalHeight($("#content, #sidebar"));
> });
> 
> 
> Wszystko jest ok w ff, ie a googe chrome ucina paginacje (ostatni blok w 
> content) tak jakby jej nie było. Clear nic nie daje.


oto css paginacji:

#pagination {
	width: 310px;
	margin: 30px auto;
	overflow: hidden;
	height: 100%;
}

#pagination a  {
	float: left;
	padding: 5px 10px;
	border: 1px solid #ccc;
	margin-right: 5px;
	text-decoration: none;
	background: #fff url('images/pagin_bg.png') repeat-x bottom;
	font: 12px arial, sans-serif;
}

#pagination a:hover, #pagination .active_page {
	background: #ff3f19 url('images/pagin_hover.png') repeat-x bottom;
	color: #fff;
}



Ewidentnie w podglądzie ff i chrome widze, że różni się dodany height w 
stylu inline. W ff jest 792px a w chromiaku 692px.
Z jakiegoś powodu nie widzi ostatniego bloku, nie wiem czemu.
Technical Details
Message-ID: <i8idvi$36q$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <i8id8p$c1$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: hazet <hazet@no-mail.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Chrome ucina content przy skrypcie equal jQuery
Date: Wed, 06 Oct 2010 20:08:51 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 53
Message-ID: <i8idvi$36q$1@inews.gazeta.pl>
References: <i8id8p$c1$1@inews.gazeta.pl>
NNTP-Posting-Host: static-ip-77-89-75-190.promax.media.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1286388530 3290 77.89.75.190 (6 Oct 2010 18:08:50 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Wed, 6 Oct 2010 18:08:50 +0000 (UTC)
X-User: introw
X-Antivirus: avast! (VPS 101006-0, 2010-10-06), Outbound message
In-Reply-To: <i8id8p$c1$1@inews.gazeta.pl>
X-Antivirus-Status: Clean
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit