Announcement

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

    Issue: Unexpected white space at the end of a picklist w/ only one item in select box

    Unexpected behaviour found under "v11.1p_2017-07-21/Pro Deployment":
    Click image for larger version

Name:	broken-new.PNG
Views:	37
Size:	5.9 KB
ID:	248140

    Worked fine under "v11.0p_2016-08-13/Pro Deployment":
    Click image for larger version

Name:	works-old.PNG
Views:	62
Size:	5.0 KB
ID:	248139

    Tested under chrome with the following snippet (clean environment, no configuration, no skin)

    Code:
         // Unexpected white space in picker when there is only one item...
    
        isc.DynamicForm.create({
          autoShow : true,
          numCols : 1,
          width : 300,
          fields : [{
            type : 'select',
            name : 'select',
            showTitle : false,
            width : 248,
            defaultValue : 'bar',
            displayField : 'name',
            pickListWidth : 520,
            pickListFields :
            [
              { name : 'code', title   : 'Code' },
              { name : 'name', title   : 'Name' },
              { name : 'weight', title   : 'Weight' }
            ],
    
            getClientPickListData : function() {
    
              return [
                { code: 'bar', name : 'Bar', weight : '1kg'}
              ]
            }
          }]
        });
        
        // Works fine with more than one item
        isc.DynamicForm.create({
          autoShow : true,
          numCols : 1,
          top: 100,
          width : 300,
          fields : [{
            type : 'select',
            name : 'select',
            showTitle : false,
            width : 248,
            defaultValue : 'bar',
            displayField : 'name',
            pickListWidth : 520,
            pickListFields :
            [
              { name : 'code', title   : 'Code' },
              { name : 'name', title   : 'Name' },
              { name : 'weight', title   : 'Weight' }
            ],
    
            getClientPickListData : function() {
    
              return [
                { code: 'foo', name : 'Foo', weight : '2kg'},
                { code: 'bar', name : 'Bar', weight : '1kg'}
              ]
            }
          }]
        });

    #2
    We've fixed this in SC 11.1p and newer releases - the only ones affected by this issue. The fix should be in the nightly builds dated 2017-08-09 and beyond.

    Comment


      #3
      Great - thanks!

      Comment

      Working...
      X