Index: /CKEditor/trunk/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/dialog/plugin.js	(revision 3296)
+++ /CKEditor/trunk/_source/plugins/dialog/plugin.js	(revision 3297)
@@ -122,5 +122,7 @@
 			element : themeBuilt.element,
 			name : dialogName,
+			contentSize : { width : 0, height : 0 },
 			size : { width : 0, height : 0 },
+			updateSize : false,
 			contents : {},
 			buttons : {},
@@ -417,5 +419,5 @@
 			return function( width, height )
 			{
-				if ( this._.size && this._.size.width == width && this._.size.height == height )
+				if ( this._.contentSize && this._.contentSize.width == width && this._.contentSize.height == height )
 					return;
 
@@ -428,5 +430,6 @@
 					}, this._.editor );
 
-				this._.size = { width : width, height : height };
+				this._.contentSize = { width : width, height : height };
+				this._.updateSize = true;
 			};
 		})(),
@@ -440,6 +443,13 @@
 		getSize : function()
 		{
-			var element = this._.element.getFirst();
-			return { width : element.$.offsetWidth, height : element.$.offsetHeight };
+			if ( !this._.updateSize )
+				return this._.size;
+			var element = this._.element.getElementsByTag( 'div' ).getItem( 0 );
+			var size = this._.size = { width : element.$.offsetWidth || 0, height : element.$.offsetHeight || 0};
+
+			// If either the offsetWidth or offsetHeight is 0, the element isn't visible.
+			this._.updateSize = !size.width || !size.height;
+
+			return size;
 		},
 
@@ -513,5 +523,6 @@
 			// Rearrange the dialog to the middle of the window.
 			var viewSize = CKEDITOR.document.getWindow().getViewPaneSize();
-			this.move( ( viewSize.width - this._.size.width ) / 2, ( viewSize.height - this._.size.height ) / 2 );
+			var dialogSize = this.getSize();
+			this.move( ( viewSize.width - dialogSize.width ) / 2, ( viewSize.height - dialogSize.height ) / 2 );
 
 			// Select the first tab by default.
Index: /CKEditor/trunk/_source/plugins/wsc/dialogs/wsc.js
===================================================================
--- /CKEditor/trunk/_source/plugins/wsc/dialogs/wsc.js	(revision 3296)
+++ /CKEditor/trunk/_source/plugins/wsc/dialogs/wsc.js	(revision 3297)
@@ -119,6 +119,6 @@
 	return {
 		title : editor.lang.spellCheck.title,
-		minWidth : 490,
-		minHeight : 390,
+		minWidth : 485,
+		minHeight : 380,
 		buttons : [ CKEDITOR.dialog.cancelButton ],
 		onShow : function()
@@ -147,9 +147,10 @@
 				id : 'general',
 				label : editor.lang.spellCheck.title,
+				padding : 0,
 				elements : [
 					{
 						type : 'html',
 						id : 'content',
-						style : 'width:500px;height:400px',
+						style : 'width:485;height:380px',
 						html : '<div></div>'
 					}
