logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum LayoutSizeUnit

    How a child's size along the container's main axis is expressed, using vocabulary UI designers already know from CSS. See LayoutSize.

    Namespace: Serenity.Ui.Domain.Types
    Assembly: Serenity.Ui.Domain.dll
    Syntax
    public enum LayoutSizeUnit

    Fields

    Name Description
    AUTO

    Content-sized: the child hugs its content (CSS auto).

    FIXED

    Exact pixels that neither grow nor shrink (CSS px / fixed flex-basis).

    FLEX

    A weighted share of the leftover space (CSS flex-grow / grid fr).

    PERCENT

    A fraction of the parent's main-axis size (CSS %). Value is 0..100.

    In this article
    © 2026 Serenity. All Rights Reserved