Summary: | flex-align:stretch + max-height needs to clamp to max-height and position appropriately | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ojan Vafai <ojan> | ||||||
Component: | Layout and Rendering | Assignee: | 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
Ojan Vafai
2011-10-24 16:49:37 PDT
Created attachment 115669 [details]
Patch
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 Created attachment 115704 [details]
Patch
(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 on attachment 115704 [details]
Patch
LGTM
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. Committed r101399: <http://trac.webkit.org/changeset/101399> |