From 2d6fee9265d7a86c1cbf9a4feec47d8c71e9306c Mon Sep 17 00:00:00 2001 From: Tarun Kumar Date: Sun, 10 May 2015 00:14:41 +0530 Subject: [PATCH] corrected offset for error message at bottom --- src/js/validatr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/validatr.js b/src/js/validatr.js index 805355f..565028a 100644 --- a/src/js/validatr.js +++ b/src/js/validatr.js @@ -915,7 +915,7 @@ } if (location === 'bottom') { - error.offset({top: offset.top + error.outerHeight()}); + error.offset({top: offset.top + $target.outerHeight()}); } } else if (filters.leftright.test(location)) { error.offset({top: (offset.top + $target.outerHeight() / 2) - (error.outerHeight() / 2)});