Skip to main content

box_main_auto_margins

Function box_main_auto_margins 

Source
pub(crate) fn box_main_auto_margins(
    b: &LayoutBox<'_>,
    is_row: bool,
) -> (bool, bool)
Expand description

flex アイテムの主軸方向の auto margin 個数を返す(row: left/right、column: top/bottom)。 margin-<side>:auto 明示、または margin ショートハンドの該当辺が auto のとき数える。