tinymce.full.js
function (align) {
        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 };
        }

        var elm = this.getEl(), parentElm = elm.parentNode;
        var x, y, width, height, parentWidth, parentHeight;
        var pos = getOffset(elm, parentElm);

        x = pos.x;
        y = pos.y;
        width = elm.offsetWidth;
        height = elm.offsetHeight;
        parentWidth = parentElm.clientWidth;
        parentHeight = parentElm.clientHeight;

        if (align == "end") {
          x -= parentWidth - width;
          y -= parentHeight - height;
        } else if (align == "center") {
          x -= (parentWidth / 2) - (width / 2);
          y -= (parentHeight / 2) - (height / 2);
        }

        parentElm.scrollLeft = x;
        parentElm.scrollTop = y;

        return this;
      }
function (align) {
        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 };
        }

        var elm = this.getEl(), parentElm = elm.parentNode;
        var x, y, width, height, parentWidth, parentHeight;
        var pos = getOffset(elm, parentElm);

        x = pos.x;
        y = pos.y;
        width = elm.offsetWidth;
        height = elm.offsetHeight;
        parentWidth = parentElm.clientWidth;
        parentHeight = parentElm.clientHeight;

        if (align == "end") {
          x -= parentWidth - width;
          y -= parentHeight - height;
        } else if (align == "center") {
          x -= (parentWidth / 2) - (width / 2);
          y -= (parentHeight / 2) - (height / 2);
        }

        parentElm.scrollLeft = x;
        parentElm.scrollTop = y;

        return this;
      }
function ( align ) { 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 } ; } var elm = this . getEl ( ) , parentElm = elm . parentNode ; var x , y , width , height , parentWidth , parentHeight ; var pos = getOffset ( elm , parentElm ) ; x = pos . x ; y = pos . y ; width = elm . offsetWidth ; height = elm . offsetHeight ; parentWidth = parentElm . clientWidth ; parentHeight = parentElm . clientHeight ; if ( align == "end" ) { x -= parentWidth - width ; y -= parentHeight - height ; } else if ( align == "center" ) { x -= ( parentWidth / 2 ) - ( width / 2 ) ; y -= ( parentHeight / 2 ) - ( height / 2 ) ; } parentElm . scrollLeft = x ; parentElm . scrollTop = y ; return this ; }
Scrolls the current control into view.

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