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

nbsp gets added to menuitem label in Firefox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.1
    • 6.0.1
    • Components
    • None
    • Firefox 12.0

    • None

      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>
      

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

              Created:
              Updated:
              Resolved: