Author: amarkhel
Date: 2010-11-02 07:33:20 -0400 (Tue, 02 Nov 2010)
New Revision: 19888
Modified:
trunk/examples/output-demo/src/main/webapp/qunit/tooltip.xhtml
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tooltip.js
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/tooltip.ecss
Log:
Tooltip bug fixing
Modified: trunk/examples/output-demo/src/main/webapp/qunit/tooltip.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/qunit/tooltip.xhtml 2010-11-02 11:17:32 UTC
(rev 19887)
+++ trunk/examples/output-demo/src/main/webapp/qunit/tooltip.xhtml 2010-11-02 11:33:20 UTC
(rev 19888)
@@ -49,7 +49,7 @@
<div id="myRectangle" style="border: 2px solid red;
background-color: #adff2f; width:300px; height:300px">
Tooltip apeared under green rectangle.
- <pn:tooltip id="tooltip" target="myRectangle"
mode="ajax">
+ <pn:tooltip id="tooltip" target="myRectangle"
mode="ajax" showDelay="500">
New ToolTip Yo!!!
</pn:tooltip>
</div>
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tooltip.js
===================================================================
---
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tooltip.js 2010-11-02
11:17:32 UTC (rev 19887)
+++
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tooltip.js 2010-11-02
11:33:20 UTC (rev 19888)
@@ -186,6 +186,7 @@
var tooltip = this;
this.__delay(this.options.hideDelay, function () {
tooltip.popup.hide();
+ $(rf.getDomElement(tooltip.id)).hide();
});
},
@@ -219,8 +220,9 @@
*/
__show: function (event) {
var tooltip = this;
- this.__delay(this.options.hideDelay, function () {
+ this.__delay(this.options.showDelay, function () {
tooltip.popup.show(event);
+ $(rf.getDomElement(tooltip.id)).show();
});
},
@@ -231,7 +233,7 @@
action();
if (hidingTimerHandle) {
- window.clearTimeout(this.hidingTimerHandle);
+ window.clearTimeout(hidingTimerHandle);
hidingTimerHandle = undefined;
}
}, delay);
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/tooltip.ecss
===================================================================
---
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/tooltip.ecss 2010-11-02
11:17:32 UTC (rev 19887)
+++
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/tooltip.ecss 2010-11-02
11:33:20 UTC (rev 19888)
@@ -22,6 +22,7 @@
.rf-tt {
position: absolute;
+ display: none;
}
.rf-tt-loading {
@@ -33,6 +34,14 @@
}
.rf-tt-cntr {
+ background-color: white;
+ padding: 7px;
+ border: 1px solid;
+/* color: generalFontColor; */
+ border-color : '#{richSkin.tipBorderColor}';
+ font-family: '#{richSkin.generalFamilyFont}';
+ font-size: '#{richSkin.generalSizeFont}';
+ float: left;
position: absolute;
display: none;
}
\ No newline at end of file
Show replies by date