• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    ICollectionCellSizeProvider

    Supplies the size of a single cell in a collection layout. Collection views query this provider when laying out cells so that cell dimensions can adapt to the available width.

    Methods

    GetCellSize

    ClientOnly

    Return the desired cell size given the width available to the collection.

    Parameters

    width
    number

    The width available for laying out cells, in logical pixels.

    Returns

    PocketWorlds Icon

    © 2026 Pocket Worlds. All rights reserved.