Permalink
Browse files

fix #983 Error tip is now positioned relative to the invalid entry

  • Loading branch information...
1 parent 3c38899 commit 94690a6dc07e6624bd9b4bf7ee509e295a9492ca @simonarbuckle simonarbuckle committed Feb 20, 2014
@@ -46,6 +46,13 @@ Aria.classDefinition({
if (this._onValidatePopup) {
this._onValidatePopup.hide();
}
+ },
+
+ /**
+ * Method used to get a dom reference for positioning the popup
+ */
+ getValidationPopupReference : function () {
+ return this.getDom();
}
}
});
@@ -23,7 +23,7 @@ Aria.classDefinition({
$constructor : function (widget) {
this._context = widget._context;
this._lineNumber = widget._lineNumber;
- this._field = widget.getDom();
+ this._field = widget.getValidationPopupReference();
this._WidgetCfg = widget._cfg;
this._validationPopup = null; // null when the validation is closed
this._preferredPositions = {
@@ -360,6 +360,12 @@ Aria.classDefinition({
this.setProperty("value", newSuggestions);
this._textInputField.style.width = "0px";
this.__resizeInput();
+ },
+ /**
+ * Method used to get a dom reference for positioning the popup
+ */
+ getValidationPopupReference : function () {
+ return this.getTextInputField();
}
}
});
@@ -57,6 +57,9 @@ Aria.classDefinition({
},
getDom : function () {
return anchor;
+ },
+ getValidationPopupReference : function () {
+ return this.getDom();
}
};

0 comments on commit 94690a6

Please sign in to comment.