Announcement

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

    form with textAreaItems on same row

    SmartClient Version: SNAPSHOT_v12.1d_2020-01-07/AllModules Development Only (built 2020-01-07)
    and
    SmartClient Version: v11.1p_2020-01-07/AllModules Development Only (built 2020-01-07)

    Chrome on OSX

    Hello, it seems that when I have a form with more than one TextAreaItem on the same row, where every item has width:"*", the first textArea has width = 100.

    Please try this test case:

    Code:
    isc.DynamicForm.create({
        width: 600,
        numCols: 3,
        titleOrientation: "top",
        fields: [
            {name: "textArea", title:"TextArea", type:"textArea", width: "*"},
            {name: "textArea2", title:"TextArea 2", type:"textArea", width: "*"},
            {name: "textArea3", title:"TextArea 3", type:"textArea", width: "*"}
        ]
    });
    Click image for larger version

Name:	2020-01-08 09.50.29.jpg
Views:	145
Size:	17.3 KB
ID:	260661

    #2
    Please see the Form Layout overview. Width:"*" on an item means it fills its column. dynamicForm.colWidths controls the relative widths of columns. 100 is the default for the first column if you do not specify a width.

    Comment


      #3
      Thanks for the explanation.
      So, the defaultValue for colWidths seems to be null, but actually it behaves as if the defaultValue is [100, "*", ..., "*"] ?

      Comment


        #4
        See the docs:
        If not specified, we assume every other column will contain form item titles, and so should have form.titleWidth, and all other columns should share the remaining space.

        Comment

        Working...
        X