toolbarbutton with no label will display larger width blur box

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • None
    • Affects Version/s: 5.0.9
    • Component/s: General
    • None

      When use toolbarbutton with nolabel. The blur box is wider than expected. Because it contains a " ". The code is "toolbarbutton.js":

      domContent_: function()

      { var label = zUtl.encodeXML(this.getLabel()), img = this.getImage(); if (!img) return label; img = '<img src="' + img + '" align="absmiddle" />'; var space = "vertical" == this.getOrient() ? '<br/>' : ' '; return this.getDir() == 'reverse' ? label + space + img : img + space + label; }

      ,

      Please ignore the space when label is empty.

            Assignee:
            benbai
            Reporter:
            Jidong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: