Skip to content
Snippets Groups Projects
Commit 025e5a5b authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Fix a bug displaying tooltip.

Now it work in all cases, independently of the layout.
parent 1b29e72d
No related branches found
No related tags found
No related merge requests found
......@@ -55,15 +55,17 @@ App.form.EntryFormPanel = Ext.extend(App.form.FormPanel, {
// Add handler to display tool tip for each field
// Require the configuration parameter tipText.
for (var i = 0; i < this.items.items.length; i++){
var field = this.items.items[i];
var fields = this.findByType('field');
for (var i = 0; i < fields.length; i++){
var field = fields[i];
if (field.tipText){
field.on('render', function(c){
new Ext.ToolTip({
target: c.getEl(),
title: c.fieldLabel,
anchor: 'left',
trackMouse: false,
html: field.tipText
html: Ext.util.Format.htmlEncode(c.tipText),
});
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment