Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(194)

Issue 108050: Account "float" elements for dynamic-height calculation in Webkit-based browsers (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 6 months ago by johnfargo
Modified:
16 years, 5 months ago
Reviewers:
shindig.remailer, mhermanto
CC:
johnfargo
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

@see https://issues.apache.org/jira/browse/SHINDIG-1155

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -13 lines) Patch
features/src/main/javascript/features/dynamic-height/dynamic-height.js View 1 chunk +30 lines, -13 lines 6 comments Download

Messages

Total messages: 3
johnfargo
16 years, 6 months ago (2009-08-18 01:20:39 UTC) #1
johnfargo
Thanks for the patch! A few small suggestions here. http://codereview.appspot.com/108050/diff/1/2 File features/src/main/javascript/features/dynamic-height/dynamic-height.js (left): http://codereview.appspot.com/108050/diff/1/2#oldcode64 Line ...
16 years, 6 months ago (2009-08-18 01:29:20 UTC) #2
mhermanto
16 years, 6 months ago (2009-08-18 03:48:59 UTC) #3
http://codereview.appspot.com/108050/diff/1/2
File features/src/main/javascript/features/dynamic-height/dynamic-height.js
(left):

http://codereview.appspot.com/108050/diff/1/2#oldcode64
Line 64: // scrollHeight already accounts for border-bottom and padding-bottom.
On 2009/08/18 01:29:20, johnfargo wrote:
> Could you re-add this comment?

Done.

http://codereview.appspot.com/108050/diff/1/2
File features/src/main/javascript/features/dynamic-height/dynamic-height.js
(right):

http://codereview.appspot.com/108050/diff/1/2#newcode72
Line 72: result = getHeightForWebkitForSubtree(children[i], result);
On 2009/08/18 01:29:20, johnfargo wrote:
> 1. could we filter out nodes that are hidden?
> 2. rather than recurse, how about using a simple queue?
> var q = [ document.body ];
> while (q.length > 0) {
>   var elem = q.shift();
>   for (child in elem.children) {
>     // maxSoFar calculation
>     q.push(child);
>   }
> }
> 

Done. I like.

http://codereview.appspot.com/108050/diff/1/2#newcode81
Line 81: * "float" may place a child element outside of the containig parent
element.
On 2009/08/18 01:29:20, johnfargo wrote:
> nit: s/containig/containing

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b