Announcement

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

    Unexpected form overflow

    SmartClient Version: v13.1p_2025-12-28/AllModules Development Only (built 2025-12-28)

    Hi, please try this test case in the showcase:

    Code:
    isc.DynamicForm.create({
        ID: "form1",
        width: "100%",
        border: "1px solid blue",
        numCols: 7,
        colWidths: ["*", "*", "*", "*", "*", "*", "*"],
        fields: [
            {name: "foo0", rowSpan: 2, colSpan: 1, showTitle: false, type: "textArea", height: "*"},
            {name: "foo1", endRow: false}, {name: "foo2", endRow: false}, {name: "foo3"},
            {name: "foo4", endRow: false}, {name: "foo5", endRow: false}, {name: "foo6"}
        ]
    });
    isc.DynamicForm.create({
        ID: "form2",
        width: "100%",
        border: "1px solid blue",
        numCols: 7,
        colWidths: ["*", "*", "*", "*", "*", "*", "*"],
        fields: [
            {name: "foo0", rowSpan: 2, colSpan: 1, showTitle: false, type: "textArea", height: "*"},
            {name: "foo1", endRow: false}, {name: "foo2", endRow: false}, {name: "foo3"},
            {name: "foo4", endRow: false}, {name: "foo5", endRow: false}, {name: "foo6"},
            {name: "foo7", type: "FileItem", colSpan: 6, hint: "foo bar"}
        ]
    });
    
    isc.VLayout.create({
        width: "100%",
        border: "1px solid red",
        members: [form1, form2]
    })
    It’s not clear to me why the second form appears to overflow and therefore ends up wider:


    Click image for larger version

Name:	2025-12-28 14.40.20.jpg
Views:	10
Size:	34.6 KB
ID:	276884

    This does not happen if the VLayout has a fixed width.
    Is this a bug, or am I missing something?
Working...
X