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

toolbarbutton with no label will display larger width blur box

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: