Search Results for

    Show / Hide Table of Contents

    Class CSSAvailableSpace2

    Spec 9.2.2 calculates an "available space" concept, which is made up of two values, each of which is either a 'length' (pixels) or a 'constraint' (MAX_CONTENT, MIN_CONTENT).

    The Flexbox spec is badly written, and has an incomplete 'example-based' definition, which is:

    https://www.w3.org/TR/css-flexbox-1/#algo-available "For each dimension, if that dimension of the flex container’s content box is a definite size, use that; if that dimension of the flex container is being sized under a min or max-content constraint, the available space in that dimension is that constraint; otherwise, subtract the flex container’s margin, border, and padding from the space available to the flex container in that dimension and use that value. This might result in an infinite value."

    CSS3 defines AvailableSpace as: float, infinite, or constraint:

    https://www.w3.org/TR/css-sizing-3/#available "A size representing the space into which a box is laid out, as determined by the rules of the formatting context in which it participates. The space available to a box is usually either a measurement of its containing block (if that is definite) or an infinite size (when it is indefinite). Available space can alternatively be either a min-content constraint or a max-content constraint, which forces boxes laid into it to be laid out under that constraint."

    Inheritance
    Object
    CSSAvailableSpace2
    Namespace: NinjaTools.FlexBuilder.LayoutAlgorithms
    Assembly: cs.temp.dll.dll
    Syntax
    public class CSSAvailableSpace2

    Constructors

    - (void) CSSAvailableSpace2()

    Fields

    - (CSSAvailableLength) x

    - (CSSAvailableLength) y

    Properties

    - (CSSAvailableSpace) ConvertToLegacy

    Methods

    - (Boolean) Equals(CSSAvailableSpace2)

    Parameters
    CSSAvailableSpace2 other
    Returns
    Boolean

    - (Boolean) Equals(Object)

    Parameters
    Object obj
    Returns
    Boolean
    Overrides
    Object.Equals(Object)

    - (Int32) GetHashCode()

    Returns
    Int32
    Overrides
    Object.GetHashCode()

    - (CSSAvailableLength) Length(Axis)

    Parameters
    Axis axis
    Returns
    CSSAvailableLength

    - (void) Length(Axis, CSSAvailableLength)

    Parameters
    Axis axis
    CSSAvailableLength newValue

    - (String) ToString()

    Returns
    String
    Overrides
    Object.ToString()

    Operators

    - (Boolean) Equality(CSSAvailableSpace2, CSSAvailableSpace2)

    Parameters
    CSSAvailableSpace2 b1
    CSSAvailableSpace2 b2
    Returns
    Boolean

    - (Boolean) Inequality(CSSAvailableSpace2, CSSAvailableSpace2)

    Parameters
    CSSAvailableSpace2 b1
    CSSAvailableSpace2 b2
    Returns
    Boolean
    In This Article
    Back to top http://flexbuilder.ninja