Announcement

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

    RowSpacerItem and SpacerItem showing as visible TextItem

    Steps to reproduce:

    Go to your demo page:
    https://www.smartclient.com/smartcli...crease=4&dhc=1
    Edit first dynamic form from the top and add this FormItem:

    Code:
    RowSpacerItem.create(),
    below this code:

    Code:
    isc.DynamicForm.create({
        ID: "form1",
        width: 620,
        colWidths: [190, "*"],
        fields: [
            {name: "text", title:"Text", type:"text", hint: "A plain text field", wrapHintText: false},
            {name: "colorPicker", title:"Color Picker", type:"color"},
    Row spacer item is showing like this:

    Click image for larger version

Name:	Screenshot_20191029_142114.png
Views:	154
Size:	11.9 KB
ID:	259826

    #2
    You should never create an instance of a FormItem directly. Try using this code:

    Code:
    { type: "RowSpacerItem" },

    Comment


      #3
      Originally posted by davidj6 View Post
      You should never create an instance of a FormItem directly. Try using this code:

      Code:
      { type: "RowSpacerItem" },
      Facepalming now.
      Thank you.

      Comment

      Working...
      X