Announcement

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

    ComboBoxItem with showPickerIcon:false lacks border

    SmartClient Version: SNAPSHOT_v11.1d_2017-03-06/Enterprise Development Only (built 2017-03-06)

    Chrome on OSX

    Hello, when I set showPickerIcon:false on a ComboBoxItem, it renders without a border at all. I wonder if it's intended behavior or not.

    Test case:
    Code:
    isc.DynamicForm.create({
        width: 500,
        numCols: 4,
        isGroup: true,
        groupTitle: "List - ComboBox",
        fields : [{
            name: "bugStatus", title: "Bug Status", showPickerIcon:false,
            editorType: "ComboBoxItem",
            valueMap : {
                "new" : "New",
                "active" : "Active",
                "revisit" : "Revisit",
                "fixed" : "Fixed",
                "delivered" : "Delivered",
                "resolved" : "Resolved",
                "reopened" : "Reopened"
            }
        },{
            name: "itemName", title: "Item Name", editorType: "ComboBoxItem", 
            optionDataSource: "supplyItem", pickListWidth: 250
        }]
    });
    screenshot:

    Click image for larger version

Name:	426014804_6934978344239607870.jpg
Views:	135
Size:	36.0 KB
ID:	243270

    #2
    In the absence of the pickerIcon, a simpler rendering is used where there is no "controlBox" so the normal styling disappears. You can set alwaysShowControlBox to get it back, or you could take the styling normally applied via comboBoxItem.controlStyle and apply it via comboBoxItem.textStyle instead (some adjustments regarding padding would need to be made here to get an identical look, depending on the skin).

    Comment


      #3
      Hello, alwaysShowControlBox does the trick, thank you. Please note that it's not documented.

      Comment


        #4
        It is actually doc'd in 11.1.

        Comment


          #5
          yes it is, now I've found it in the last build. I must have searched in a previous one. Thank you very much.

          Comment

          Working...
          X