Announcement

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

    can't change default width of DateItem selectors

    SmartClient Version: v11.0p_2016-04-09/EVAL Development Only (expires 2016.06.08_11.15.36) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

    Chrome on OSX

    Hello, please modify the #dateItem sample like this:

    Code:
    isc.defineClass("MyDateItem", "DateItem");
    
    isc.MyDateItem.changeDefaults("monthSelectorDefaults",
         {
             height: 38,
             width: 100
        }
    );
    
    isc.MyDateItem.addProperties({ 
        textAlign: "center",
        height: 38
    });
    
    
    isc.DynamicForm.create({
        ID: "dateForm",
        numCols: 4,    
        width: 650,
        fields: [
            {name:"pickListDate", title:"PickList Date", editorType:"MyDateItem", width:400,
             wrapTitle:false}
        ]
    });
    You'll see that the width of the monthSelector doesn't change, only its height.

    #2
    The selectors are currently auto-sized so that they fit the longest month, day or year shown in the picker. That seems like the right behavior in all cases - why are you trying to choose some other width?

    Comment


      #3
      Actually the problem is that while using Canvas.resizeFonts I noticed that with bigger fonts some month name gets the ellipsis, try the #dateItem sample with 'spacious' setting, and select May:
      Click image for larger version

Name:	Senzanome.png
Views:	133
Size:	26.1 KB
ID:	236925

      Comment


        #4
        This is fixed for builds dated April 21 and later.

        Comment


          #5
          verified, thanks.

          Comment

          Working...
          X