﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12682	Add a return value for scrollIntoView	Marek Lewandowski	Marek Lewandowski	"We should include a boolean value returned by the [http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-scrollIntoView scrollIntoView] method.

If scroll occurred, then true would be returned, false otherwise.

In addition to that it turned out that there are no tests at all for scrollIntoParent and only one for scrollIntoView.

**Rationale:**

You might need information if the scrolling really occured.

Logic which determinates if scrolling should happen or not, is a part of scrollIntoParent implementation and is not exposed.

I've got into that thing while working on our side project, where in case of scroll we had to do some extra layout repositioning.

**Current workaround:**

The shortest workaround would be:

{{{
var wnd = issue.element.getWindow(),
	initialYScroll = wnd.getScrollPosition().y,
	scrollOccurred;

issue.element.scrollIntoView();

scrollOccurred = wnd.getScrollPosition().y !== initialYScroll;
}}}

Somebody might also use `scroll` event listener to do that, which is even more ugly.

I belive we should introduce it in next major release, since it's an API change."	New Feature	review_failed	Normal		General				
