Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-640

toolbarbutton with no label will display larger width blur box

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • 5.0.9
    • General

      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.

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

              Created:
              Updated:
              Resolved: