-
Bug
-
Resolution: Fixed
-
Normal
-
8.5.1.1
-
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