From d55192b2be12caa585200cf9c0778923f13565f9 Mon Sep 17 00:00:00 2001 From: Dvorkin Dmitry Date: Sun, 25 Oct 2015 21:55:00 +0300 Subject: [PATCH] par.getSize().y gives float after More >= 1.5.1 and SVG is used on the page so code can't find document.body and can't scroll --- Source/Forms/Form.Validator.Inline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Forms/Form.Validator.Inline.js b/Source/Forms/Form.Validator.Inline.js index 9e06da37..384fa89b 100644 --- a/Source/Forms/Form.Validator.Inline.js +++ b/Source/Forms/Form.Validator.Inline.js @@ -160,7 +160,7 @@ Form.Validator.Inline = new Class({ if (((this.options.scrollToErrorsOnSubmit && scroll == null) || scroll) && !result){ var failed = document.id(this).getElement('.validation-failed'); var par = document.id(this).getParent(); - while (par != document.body && par.getScrollSize().y == par.getSize().y){ + while (par != document.body){ par = par.getParent(); } var fx = par.retrieve('$moo:fvScroller');