posabsolute / jQuery-Validation-Engine

jQuery form validation plugin
http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
2.57k stars 1.2k forks source link

prompt positioning issue #918

Closed dtgeorge closed 5 years ago

dtgeorge commented 8 years ago

Got an error on function _buildPrompt.

After _var pos = methods.calculatePosition(field, prompt, options); got wrong pos.callerTopPosition value! I found that this is due to wrong result of promptElmt.height() call inside _calculatePosition.

My solution is: add line prompt.css({"top":"0px","left":"0px"}); before _var pos = methods.calculatePosition(field, prompt, options);

If css top and left defined, promptElmt.height() reports correct values!

All the best!

dtgeorge commented 8 years ago

Please, see details on: http://erpforum.fastprint.ua/img1/2016-03-22_12-33-39.png http://erpforum.fastprint.ua/img1/2016-03-22_12-34-02.png