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

tab component replaces manual tooltiptext

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • 8.5.1.1
    • Components
    • Security Level: Jimmy
    • None
    • ZK 8.5.2 S1, ZK 8.5.2 S2

      Steps to Reproduce

      	<tabbox>
      		<tabs>
      			<tab visible="true" tooltiptext="HELLO" label="TAB"/>
      		</tabs>
      		<tabpanels>
      			<tabpanel/>
      		</tabpanels>
      	</tabbox>
      

      hover the label "TAB"
      white padding around the text "TAB"

      Current Result

      label shows the title "TAB"
      padding area show the expected tooltip "HELLO"

      Expected Result

      "HELLO" when hovering the whole tab

      Root Cause

      https://github.com/zkoss/zk/commit/9d14c0101b79dd277b3aca2e6bdb18048fdc3c42#diff-cef84c41ad0f3e9d7fb3a0cdb6b74a6bR303
      8.5.0 introduced this new behavior (looks like an unintentional commit since it has no apparent meaning for mobile devices)

      Workaround

      restore the old contentRenderer_ function prior to 8.5.0

      	zk.afterLoad('zul.tab', function() {
      		var xTab = {};
      		zk.override(zul.tab.Tab.prototype, xTab, {
      			contentRenderer_: function (out) {
      				out.push('<span id="', this.uuid, '-cnt" class="', this.$s('text'), '">', this.domContent_(), '</span>');
      			}
      		});//zk.override
      	});//zk.afterLoad
      

            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                3h