Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Alignment of ListGridFields is not working with grid.setLayoutAlign(Alignment.LEFT);

    When setting

    grid = new Listgrid()
    grid.setLayoutAlign(Alignment.LEFT);

    The alignment is depending on the DataSourceField type.

    integer and Datetime for example are right aligned,
    but text is left aligned.


    Is this known and on purpose?
    If this is on purpose, I will just iterate over all ListGridFields and call .setAlignment(Alignment.LEFT);

    #2
    This is by design. The layoutAlign is inherited and is for alignment of the grid within another canvas. It is not for controlling field alignment. You control that alignment on the field level.

    Comment


      #3
      I would have expected that all fields have the same alignment by default.
      Thanks for solution

      Comment


        #4
        By design, fields have different default alignment by type, because this is desirable for numbers and dates.

        Comment

        Working...
        X