Skip to content

How can I set the height of an ListViewItem. #355

Closed

Description

@itg-assistant

Gunter asked 2016-11-05 15:39:00 UTC

Hi

how can I set the height of an ListViewItem

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Mariano answered 2016-11-05 19:35:26 UTC

    Hi, if listView1.view=Tile you can set the height with listView1.ItemSize property

    In other view modes i don't know.

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Gunter answered 2016-11-05 19:56:34 UTC

    Hi Mariano

    I already saw the property listView1.ItemSize, but in view=Details, that I need, this property has no effect.

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2016-11-06 22:31:47 UTC

    Hi Gunter,

    ItemSize is for the 3 other views only, not for the Details view.

    For the Details view, the height of the rows is a theme property.

    You can change it e.g. with the following mixin theme.
    Simply put it into your Themes folder as Application.mixin.theme
    (just tested with your sample for the Selected property):

    {
    "name": "Application",

    "appearances": {
    "listview/grid-view": {
    "inherit": "table",
    "states": {
    "default": {
    "properties": {
    "rowHeight": 20
    }
    }
    }
    }
    }
    }

    Best regards
    Frank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions