Run the testcase (build 06-07-11). Click on the dropdown and you will see a value map with values that are longer than the field itself. Now click on the Change Value Map button. Click on the dropdown again. You'll notice that the dropdown values have changed to something shorter but the width has not changed. Is there any way to prevent this from happening? I would like the list to grow in width when it needs to and go back to original width if the value map has changed.
Code:
isc.Button.create({ title: "Change Value Map", width: 120, left: 190, top: 45, click : function () { testForm.setValueMap("testDropDown",{"8":"bbbbbbb","7":"aaaaa"}); testForm.redraw(); } }); isc.HLayout.create({ ID :"HL",top:200, members: [ (isc.DynamicForm.create({ID:"testForm", width: 500, showEdges: true, numCols: 4, fields: [ {name: "testDropDown", type: "select", valueMap: {"8":"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb","7":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}, align: "right" } ] }))]});
Comment