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

tab component replaces manual tooltiptext

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.1.1
    • Fix Version/s: 8.5.2
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S1, ZK 8.5.2 S2

      Description

      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
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  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