Announcement

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

    showOpener hardcoded to true in TreeGrid getTreeCellValue

    In TreeGrid.js getTreeCellValue the call to this._getTreeCellTitleArray hardcodes the showOpener argument to true.

    This seems to deny having no space allocated for the opener icon in a tree. Setting showOpener: false or openerIconSize: 0 both have no effect and a 16px gap is allocated for the opener icon.

    Should TreeGrid.js actually be passing this.showOpener for that arg?

    Or, are there any alternatives for having no space allocated for the opener icon in a tree?

    v8.2p_2013-02-04/LGPL Development Only
    Last edited by jason.saunders; 18 Feb 2013, 07:22. Reason: I meant openerIconSize not openerIcon

    #2
    Check in 8.3, it's corrected there.

    Comment


      #3
      Originally posted by Isomorphic View Post
      Check in 8.3, it's corrected there.
      Downloaded SmartClient_v83p_2013-02-18_LGPL. The code is the same, the showOpener arg is hardcoded to true;

      Code:
      var titleCellTemplate = this._getTreeCellTitleArray(value, record, recordNum, fieldNum, true, styleName, cssText);
      Tried test using code from feature explorer http://www.smartclient.com/docs/8.3/a/system/reference/SmartClient_Explorer.html#childrenArrays with showOpener: false and openerIconSize: 0. Got same problem.

      This does not appear to be corrected in 8.3.

      Comment


        #4
        Ah, OK, you want the space removed as well.

        Setting showOpener:false and openerIconSize to 1 will remove all but 1px of the allocated space. Your setting of 0 was ignored as a seemingly invalid setting, but 1 will work.

        We'll look at making this automatic for the next release.

        Comment


          #5
          Confirmed - setting openerIconSize to 1 works and is an acceptable workaround. Thanks.

          Comment

          Working...
          X