Announcement

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

    colWidths of DynamicForm are not properly working?

    HI there

    If we define a DynamicForm and give each column a specific width (400 and 100), the resulting right column isn't the specified comulmWidth (100) instead it's about 200 px.
    It's reproducable with the latest version of Chrome, Firefox and IE and the latest downloadable version SmartClient_v111p_2018-01-11_Pro.

    If I add the width-attribute to both FormItems (with the value 100), the width of the right colum seems to be correct


    I think the definition of colWith should influence the width of the editor and label-column so with the definition of the colWidths the resutl should look like the second screenshot? But maybe I misunderstood?

    Code:
    Code:
    Canvas.resizeControls(4);Canvas.resizeFonts(2);
    isc.DynamicForm.create({
        backgroundColor: "#FFFF00",
        "colWidths": ["400", "100"],
        "width": "500",
        "fields":
        [{
                "ID": "textItem",
                "name": "textItem",
                "title": "Small title",
                "type": "text"
            }, {
                "ID": "booleanItem",
                "name": "booleanItem",
                "title": "test1",
                "type": "boolean"
            }
        ],
        "values": {
            "textItem": "test2",
            "booleanItem": true,
        }
    })
    Best regards
    Last edited by SimonF; 12 Jan 2018, 04:30.

    #2
    Set the formItem widths to "*", so they fill the 100px column, rather than overflowing it

    Comment


      #3
      Thanks for the lighning fast repsonse.
      Indeed I was searching for the "*"

      Comment

      Working...
      X