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

nbsp gets added to menuitem label in Firefox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.1
    • Fix Version/s: 6.5.1
    • Component/s: Components
    • Labels:
      None
    • Environment:

      Firefox 12.0

      Description

      If you run the code below in the sandbox http://www.zkoss.org/zksandbox using Firefox, you will notice that the underline on the word "Help" extents 1 character beyond the "p". Using firebug, you can see that a " " character is being appended to the label in line:

      <menuitem label="Help" style="text-decoration:underline;"/>

      This extra spaces causes the underline to extend past the text of the label.

      <zk>
      	<menubar id="menubar" width="100%">
      		<menu label="Project" >
      			<menupopup>
      				<menuitem  label="New"  />
      				<menuitem  label="Open"  />
      			</menupopup>
      		</menu>
      		<menuitem label="Help" style="text-decoration:underline;"/>
      		<menu>
      			<menupopup>
      				<menuitem label="Index"  />
      			</menupopup>
      		</menu>
      	</menubar>
      </zk>
      

        Attachments

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            jhook jhook
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: