public/ckeditor/4.4dev/plugins/dialog/plugin.js
function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) {
				if ( arguments.length < 3 )
					return;

				this._ || ( this._ = {} );

				var children = this._.children = childObjList,
					width = elementDefinition && elementDefinition.width || null,
					heights = elementDefinition && elementDefinition.heights || null;
				/** @ignore */
				var innerHTML = function() {
						var html = [ '<table role="presentation" cellspacing="0" border="0" ' ];
						html.push( 'style="' );
						if ( elementDefinition && elementDefinition.expand )
							html.push( 'height:100%;' );
						html.push( 'width:' + cssLength( width || '100%' ), ';' );

						// (#10123) Temp fix for dialog broken layout in latest webkit.
						if ( CKEDITOR.env.webkit )
							html.push( 'float:none;' );

						html.push( '"' );
						html.push( 'align="', CKEDITOR.tools.htmlEncode(
						( elementDefinition && elementDefinition.align ) || ( dialog.getParentEditor().lang.dir == 'ltr' ? 'left' : 'right' ) ), '" ' );

						html.push( '><tbody>' );
						for ( var i = 0; i < childHtmlList.length; i++ ) {
							var styles = [];
							html.push( '<tr><td role="presentation" ' );
							if ( width )
								styles.push( 'width:' + cssLength( width || '100%' ) );
							if ( heights )
								styles.push( 'height:' + cssLength( heights[ i ] ) );
							else if ( elementDefinition && elementDefinition.expand )
								styles.push( 'height:' + Math.floor( 100 / childHtmlList.length ) + '%' );
							if ( elementDefinition && elementDefinition.padding != undefined )
								styles.push( 'padding:' + cssLength( elementDefinition.padding ) );
							// In IE Quirks alignment has to be done on table cells. (#7324)
							if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && children[ i ].align )
								styles.push( 'text-align:' + children[ i ].align );
							if ( styles.length > 0 )
								html.push( 'style="', styles.join( '; ' ), '" ' );
							html.push( ' class="cke_dialog_ui_vbox_child">', childHtmlList[ i ], '</td></tr>' );
						}
						html.push( '</tbody></table>' );
						return html.join( '' );
					};
				CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition || { type: 'vbox' }, htmlList, 'div', null, { role: 'presentation' }, innerHTML );
			}
function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) {
				if ( arguments.length < 3 )
					return;

				this._ || ( this._ = {} );

				var children = this._.children = childObjList,
					width = elementDefinition && elementDefinition.width || null,
					heights = elementDefinition && elementDefinition.heights || null;
				/** @ignore */
				var innerHTML = function() {
						var html = [ '<table role="presentation" cellspacing="0" border="0" ' ];
						html.push( 'style="' );
						if ( elementDefinition && elementDefinition.expand )
							html.push( 'height:100%;' );
						html.push( 'width:' + cssLength( width || '100%' ), ';' );

						// (#10123) Temp fix for dialog broken layout in latest webkit.
						if ( CKEDITOR.env.webkit )
							html.push( 'float:none;' );

						html.push( '"' );
						html.push( 'align="', CKEDITOR.tools.htmlEncode(
						( elementDefinition && elementDefinition.align ) || ( dialog.getParentEditor().lang.dir == 'ltr' ? 'left' : 'right' ) ), '" ' );

						html.push( '><tbody>' );
						for ( var i = 0; i < childHtmlList.length; i++ ) {
							var styles = [];
							html.push( '<tr><td role="presentation" ' );
							if ( width )
								styles.push( 'width:' + cssLength( width || '100%' ) );
							if ( heights )
								styles.push( 'height:' + cssLength( heights[ i ] ) );
							else if ( elementDefinition && elementDefinition.expand )
								styles.push( 'height:' + Math.floor( 100 / childHtmlList.length ) + '%' );
							if ( elementDefinition && elementDefinition.padding != undefined )
								styles.push( 'padding:' + cssLength( elementDefinition.padding ) );
							// In IE Quirks alignment has to be done on table cells. (#7324)
							if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && children[ i ].align )
								styles.push( 'text-align:' + children[ i ].align );
							if ( styles.length > 0 )
								html.push( 'style="', styles.join( '; ' ), '" ' );
							html.push( ' class="cke_dialog_ui_vbox_child">', childHtmlList[ i ], '</td></tr>' );
						}
						html.push( '</tbody></table>' );
						return html.join( '' );
					};
				CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition || { type: 'vbox' }, htmlList, 'div', null, { role: 'presentation' }, innerHTML );
			}
function ( dialog , childObjList , childHtmlList , htmlList , elementDefinition ) { if ( arguments . length < 3 ) return ; this . _ || ( this . _ = { } ) ; var children = this . _ . children = childObjList , width = elementDefinition && elementDefinition . width || null , heights = elementDefinition && elementDefinition . heights || null ; /** @ignore */ var innerHTML = function ( ) { var html = [ '<table role="presentation" cellspacing="0" border="0" ' ] ; html . push ( 'style="' ) ; if ( elementDefinition && elementDefinition . expand ) html . push ( 'height:100%;' ) ; html . push ( 'width:' + cssLength ( width || '100%' ) , ';' ) ; // (#10123) Temp fix for dialog broken layout in latest webkit.
 if ( CKEDITOR . env . webkit ) html . push ( 'float:none;' ) ; html . push ( '"' ) ; html . push ( 'align="' , CKEDITOR . tools . htmlEncode ( ( elementDefinition && elementDefinition . align ) || ( dialog . getParentEditor ( ) . lang . dir == 'ltr' ? 'left' : 'right' ) ) , '" ' ) ; html . push ( '><tbody>' ) ; for ( var i = 0 ; i < childHtmlList . length ; i ++ ) { var styles = [ ] ; html . push ( '<tr><td role="presentation" ' ) ; if ( width ) styles . push ( 'width:' + cssLength ( width || '100%' ) ) ; if ( heights ) styles . push ( 'height:' + cssLength ( heights [ i ] ) ) ; else if ( elementDefinition && elementDefinition . expand ) styles . push ( 'height:' + Math . floor ( 100 / childHtmlList . length ) + '%' ) ; if ( elementDefinition && elementDefinition . padding != undefined ) styles . push ( 'padding:' + cssLength ( elementDefinition . padding ) ) ; // In IE Quirks alignment has to be done on table cells. (#7324)
 if ( CKEDITOR . env . ie && CKEDITOR . env . quirks && children [ i ] . align ) styles . push ( 'text-align:' + children [ i ] . align ) ; if ( styles . length > 0 ) html . push ( 'style="' , styles . join ( '; ' ) , '" ' ) ; html . push ( ' class="cke_dialog_ui_vbox_child">' , childHtmlList [ i ] , '</td></tr>' ) ; } html . push ( '</tbody></table>' ) ; return html . join ( '' ) ; } ; CKEDITOR . ui . dialog . uiElement . call ( this , dialog , elementDefinition || { type : 'vbox' } , htmlList , 'div' , null , { role : 'presentation' } , innerHTML ) ; }
Vertical layout box for dialog UI elements.

@class CKEDITOR.ui.dialog.vbox
@extends CKEDITOR.ui.dialog.hbox
@constructor Creates a vbox class instance.
@param {CKEDITOR.dialog} dialog Parent dialog object.
@param {Array} childObjList
Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container.
@param {Array} childHtmlList
Array of HTML code that correspond to the HTML output of all the
objects in childObjList.
@param {Array} htmlList Array of HTML code that this element will output to.
@param {CKEDITOR.dialog.definition.uiElement} elementDefinition
The element definition. Accepted fields:

* `width` (Optional) The width of the layout.
* `heights` (Optional) The heights of individual cells.
* `align` (Optional) The alignment of the layout.
* `padding` (Optional) The padding width inside child cells.
* `expand` (Optional) Whether the layout should expand
vertically to fill its container.
Vertical layout box for dialog UI elements .