Announcement

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

    StaticTextItem Value Not Clipped Using "clipValue" Property

    SmartClient Version: v9.1p_2016-04-15/Pro Development Only (built 2016-04-15)
    All browsers

    We would like to clip the value of the static text item when it overflows. We set the clipValue property to true but it still overflows. However, there is no width set on the static text item so it does not clip. How do we accomplish clipping the value of the static text item like when the regular text item value overflows? Is it a good approach to explicitly provide width: "100%" on the static text item to make it clip properly?

    Code:
    isc.DynamicForm.create({
    backgroundColor: "green",
    width: 400,
        fields: [
            {
               // width: "100%",
                name: "textItem",
                type: "staticText",
                clipValue: true,
                wrap: false,
                showTitle: false,
                value: "Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics Isomorphics"
            }
        ]
    });

    #2
    Any news on this??

    Comment


      #3
      Sorry for the long silence here. This (simple) report prompted some internal discussion and we failed to update the thread to let you know.

      We're getting rid of the requirement to explicitly specify "100%" width to have StaticTextItems clip their value. That change will be present in the 11.0p and 11.1d branches going forward.
      For older branches (including the 9.1p branch), you can simply apply a default width of 100% to all StaticTextItems in application code to get the same effect:

      Code:
      isc.StaticTextItem.addProperties({width:"100%"});
      Regards
      Isomorphic Software

      Comment

      Working...
      X