X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..refs/heads/master:/docs/source/Field2.html
diff --git a/docs/source/Field2.html b/docs/source/Field2.html
index d558fc1e..47c45fa4 100644
--- a/docs/source/Field2.html
+++ b/docs/source/Field2.html
@@ -3,8 +3,8 @@
The source code
-
-
+
+
@@ -117,6 +117,10 @@ Ext.define('Ext.layout.component.field.Field', {
me.activeError = owner.getActiveError();
},
+
+ onFocus: function(){
+ this.getErrorStrategy().onFocus(this.owner);
+ },
/**
@@ -271,6 +275,18 @@ Ext.define('Ext.layout.component.field.Field', {
el.setStyle(name, value);
}
}
+
+ function showTip(owner) {
+ var tip = Ext.layout.component.field.Field.tip,
+ target;
+
+ if (tip && tip.isVisible()) {
+ target = tip.activeTarget;
+ if (target && target.el === owner.getActionEl().dom) {
+ tip.toFront(true);
+ }
+ }
+ }
var applyIf = Ext.applyIf,
emptyFn = Ext.emptyFn,
@@ -281,7 +297,8 @@ Ext.define('Ext.layout.component.field.Field', {
adjustHorizInsets: emptyFn,
adjustVertInsets: emptyFn,
layoutHoriz: emptyFn,
- layoutVert: emptyFn
+ layoutVert: emptyFn,
+ onFocus: emptyFn
};
return {
@@ -312,7 +329,8 @@ Ext.define('Ext.layout.component.field.Field', {
if (owner.hasActiveError()) {
setStyle(owner.errorEl, 'top', info.insets.top + 'px');
}
- }
+ },
+ onFocus: showTip
}, base),
/**
@@ -349,7 +367,8 @@ Ext.define('Ext.layout.component.field.Field', {
setDisplayed(owner.errorEl, false);
Ext.layout.component.field.Field.initTip();
owner.getActionEl().dom.setAttribute('data-errorqtip', owner.getActiveError() || '');
- }
+ },
+ onFocus: showTip
}, base),
/**