public/ckeditor/4.4dev/core/dom/element.js
function( alignToTop ) {
			var parent = this.getParent();
			if ( !parent )
				return;

			// Scroll the element into parent container from the inner out.
			do {
				// Check ancestors that overflows.
				var overflowed =
					parent.$.clientWidth && parent.$.clientWidth < parent.$.scrollWidth ||
					parent.$.clientHeight && parent.$.clientHeight < parent.$.scrollHeight;

				// Skip body element, which will report wrong clientHeight when containing
				// floated content. (#9523)
				if ( overflowed && !parent.is( 'body' ) )
					this.scrollIntoParent( parent, alignToTop, 1 );

				// Walk across the frame.
				if ( parent.is( 'html' ) ) {
					var win = parent.getWindow();

					// Avoid security error.
					try {
						var iframe = win.$.frameElement;
						iframe && ( parent = new CKEDITOR.dom.element( iframe ) );
					} catch ( er ) {}
				}
			}
			while ( ( parent = parent.getParent() ) );
		}
function( alignToTop ) {
			var parent = this.getParent();
			if ( !parent )
				return;

			// Scroll the element into parent container from the inner out.
			do {
				// Check ancestors that overflows.
				var overflowed =
					parent.$.clientWidth && parent.$.clientWidth < parent.$.scrollWidth ||
					parent.$.clientHeight && parent.$.clientHeight < parent.$.scrollHeight;

				// Skip body element, which will report wrong clientHeight when containing
				// floated content. (#9523)
				if ( overflowed && !parent.is( 'body' ) )
					this.scrollIntoParent( parent, alignToTop, 1 );

				// Walk across the frame.
				if ( parent.is( 'html' ) ) {
					var win = parent.getWindow();

					// Avoid security error.
					try {
						var iframe = win.$.frameElement;
						iframe && ( parent = new CKEDITOR.dom.element( iframe ) );
					} catch ( er ) {}
				}
			}
			while ( ( parent = parent.getParent() ) );
		}
function ( alignToTop ) { var parent = this . getParent ( ) ; if ( ! parent ) return ; // Scroll the element into parent container from the inner out. do { // Check ancestors that overflows. var overflowed = parent . $ . clientWidth && parent . $ . clientWidth < parent . $ . scrollWidth || parent . $ . clientHeight && parent . $ . clientHeight < parent . $ . scrollHeight ; // Skip body element, which will report wrong clientHeight when containing // floated content. (#9523) if ( overflowed && ! parent . is ( 'body' ) ) this . scrollIntoParent ( parent , alignToTop , 1 ) ; // Walk across the frame. if ( parent . is ( 'html' ) ) { var win = parent . getWindow ( ) ; // Avoid security error. try { var iframe = win . $ . frameElement ; iframe && ( parent = new CKEDITOR . dom . element ( iframe ) ) ; } catch ( er ) { } } } while ( ( parent = parent . getParent ( ) ) ) ; }
Make any page element visible inside the browser viewport.

@param {Boolean} [alignToTop=false]
Make any page element visible inside the browser viewport .