• Dana Fried's avatar
    Better support for height-for-width and custom flex rules. · 123efb3e
    Dana Fried authored
    It improves but does not completely fix support for height-for-width
    calculations, allowing views to exceed preferred size in more cases
    where a custom flex rule or height-for-width relationship is present,
    especially in places where there is a vertical layout with horizontal
    stretch alignment.
    
    We have also added a specific regression test case for the bug in
    question, which has example code showing how to make the requested case
    work with the existing infrastructure.
    
    Bug: 1012119
    Change-Id: I88380771aacfea29e750dd5033f1fa11e9eb999a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1940714Reviewed-by: default avatarCollin Baker <collinbaker@chromium.org>
    Commit-Queue: Dana Fried <dfried@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#721236}
    123efb3e
flex_layout_unittest.cc 102 KB