• A
    Take CompoundButtons drawables min size into account during measurements (#528) · a8c8b6e5
    Alessandro Balocco 提交于
    CompoundButtons such as Checkboxes, when are allowed to shrink (flexShrink = 1f), during the recalculation can end up being shrunk more than what I would consider their "minimum size" since the negative space is calculated for all FlexItems in the shrinkFlexItems() method.
    
    In this PR I try to prevent these components to get completely shrunk by considering the minimum size of their button drawable. In this way, the drawable size will determine the minimum size of the widget unless a minWidth or minHeight are specified by the user.
    a8c8b6e5
FlexboxHelperTest.kt 27.5 KB