Bug 70780

Summary: flex-align:stretch + max-height needs to clamp to max-height and position appropriately
Product: WebKit Reporter: Ojan Vafai <ojan>
Component: Layout and RenderingAssignee: Tony Chang <tony>
Status: RESOLVED FIXED    
Severity: Normal CC: hyatt, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 62048    
Attachments:
Description Flags
Patch
none
Patch hyatt: review+

Description Ojan Vafai 2011-10-24 16:49:37 PDT
See www-style discussion for the resolution of where it should be positioned: http://lists.w3.org/Archives/Public/www-style/2011Oct/0698.html
Comment 1 Tony Chang 2011-11-17 13:56:29 PST
Created attachment 115669 [details]
Patch
Comment 2 Ojan Vafai 2011-11-17 14:12:04 PST
Comment on attachment 115669 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=115669&action=review

> Source/WebCore/rendering/RenderFlexibleBox.cpp:720
> +            Length logicalHeight = isHorizontalFlow() ? child->style()->height() : child->style()->width();

Nit: s/logicalHeight/crossAxisExtent
Comment 3 Tony Chang 2011-11-17 16:10:12 PST
Created attachment 115704 [details]
Patch
Comment 4 Tony Chang 2011-11-17 16:11:22 PST
(In reply to comment #2)
> (From update of attachment 115669 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=115669&action=review
> 
> > Source/WebCore/rendering/RenderFlexibleBox.cpp:720
> > +            Length logicalHeight = isHorizontalFlow() ? child->style()->height() : child->style()->width();
> 
> Nit: s/logicalHeight/crossAxisExtent

I switch to using logical height for all of this code since it only applies to row flexing.
Comment 5 Ojan Vafai 2011-11-18 00:16:34 PST
Comment on attachment 115704 [details]
Patch

LGTM
Comment 6 Dave Hyatt 2011-11-29 11:01:27 PST
Comment on attachment 115704 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=115704&action=review

r=me

> Source/WebCore/rendering/RenderBox.cpp:1805
> +    // In the case of columns that have a strech alignment, we go ahead and layout at the

Typo. strech should be stretch.
Comment 7 Tony Chang 2011-11-29 11:08:04 PST
Committed r101399: <http://trac.webkit.org/changeset/101399>