Dec 26, 2012, 2:53 PM
[CLOSED] TriggerField loses focus after ToolTip disappeared
Hello guys,
I've faced with the problem when TriggerField loses focus after Tooltip disappeared.
I have a Window with a GridPanel inside.
GridPanel has ToolTip with Delegate=".x-grid-cell".
The TriggerField is in HeaderItems of one of the columns.
The steps are:
1) Click on the TriggerField (set cursor inside the field). The field is focused now.
2) Move mouse pointer to grid cell - the ToolTip will be showed.
3) Move mouse pointer back to the TriggerField (or any other control). The ToolTip disappears, the TriggerField loses the focus.
I've found the next solution and it seems it works for me:
Thank you.
I've faced with the problem when TriggerField loses focus after Tooltip disappeared.
I have a Window with a GridPanel inside.
GridPanel has ToolTip with Delegate=".x-grid-cell".
The TriggerField is in HeaderItems of one of the columns.
The steps are:
1) Click on the TriggerField (set cursor inside the field). The field is focused now.
2) Move mouse pointer to grid cell - the ToolTip will be showed.
3) Move mouse pointer back to the TriggerField (or any other control). The ToolTip disappears, the TriggerField loses the focus.
I've found the next solution and it seems it works for me:
Ext.require('Ext.ZIndexManager',
function() {
Ext.override(Ext.ZIndexManager, {
_setActiveChild: function(comp, oldFront) {
var front = this.front;
if (comp !== front) {
if (front && !front.destroying) {
front.setActive(false, comp);
}
this.front = comp;
if (comp && comp != oldFront) {
if (!(oldFront instanceof Ext.tip.ToolTip)) {
comp.setActive(true);
if (comp.modal) {
this._showModalMask(comp);
}
}
}
}
},
});
}
);
Could you please confirm if the workaround is acceptable?Thank you.
Last edited by Daniil; Dec 27, 2012 at 11:35 AM.
Reason: [CLOSED]