This code scrolls the user to the position of the first field that errors in a form upon validation (part of jquery.bvalidator.js):
Code:
if(options.scrollToError){
// get most top tolltip
var tot = tooltip.offset().top;
if(scroll_to === null || tot < scroll_to)
scroll_to = tot;
}
Because my html right-content scrolls up under an "always in view" header, the scroll up to the tooltip actually doesn't scroll up far enough, by about 100px.
Is there a way to modify the code above to go up 100px more?