posabsolute/jQuery-Validation-Engine — Issue #253: centerLeft and centerRight
Author: dark-cms
Created: 2012-01-20 14:34:44+00:00
State: open

i dont know why but i think your position of centerleft and centerright is not correct, or your explaination for this is not the same as my.

with centerleft i think thepopup should be at the left side of the input, select, or so, and the horizontal center of popup and input should be the same.

but in your code it should a little bit scary.

if you change following , it will be nicer :
(linenumbers based on current github sourcecode)

line 1523 - 1525:
case "centerLeft":
promptleftPosition -= promptElmt.width() + 2;
break;

add before break
promptTopPosition -= (promptHeight/2);
promptTopPosition += (field.outerHeight()/2) ;

on center right line 1472 - 1481
case "centerRight":
if (overflow) {
promptTopPosition=field.outerHeight();
promptleftPosition=field.outerWidth(1)+5;
} else {
promptleftPosition+=field.outerWidth()+5;
}
break;

before } break :
promptTopPosition -= (promptHeight/2);
promptTopPosition += (field.outerHeight()/2) ;