Announcement

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

    How To Set Item Title Width

    Hi,

    When I setWrapTitle to false, the width of the title of the field is increasing and thus, the total width of the field is also increased.

    Is there anyway to make the width of the field with its title "fixed". So, when the width of the title increases, the width of the field decreases.

    Note that I am using setWidth("*") and some of my fields have setColsSpan(3) or more.

    Any help is appreciated.

    Thank you

    #2
    Hello Halabe,

    There's not a setting that would do that. You could achieve it by drawing the field titles in a Canvas offscreen to "measure" them, then setting colWidths based on those measurements.

    Comment


      #3
      Hi Isomorphic,

      I put the Title in a Label and then in a Canvas.
      When I use Label.getWidth, I am always getting 100.

      Is there anything else that I should do?

      Thank you.

      Comment


        #4
        setAutoFit(), also, look at the different get*Width() / Height() methods and read what they return.

        Comment

        Working...
        X