function getOffset(elm, rootElm) {
				var x, y, parent = elm;

				x = y = 0;
				while (parent && parent != rootElm && parent.nodeType) {
					x += parent.offsetLeft || 0;
					y += parent.offsetTop || 0;
					parent = parent.offsetParent;
				}

				return {x: x, y: y};
			}
Scrolls the current control into view.

@method scrollIntoView
@param {String} align Alignment in view top|center|bottom.
@return {tinymce.ui.Control} Current control instance.