Index: /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js	(revision 2495)
+++ /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js	(revision 2496)
@@ -243,6 +243,6 @@
 		this._.tabs[ contents.id ] = [ tab, page ];
 		tab.getFirst().unselectable();
-		page.appendTo( this._.parts['contents'] );
-		tab.appendTo( this._.parts['tabs'] );
+		page.appendTo( this._.parts.contents );
+		tab.appendTo( this._.parts.tabs );
 		tab.setAttribute( 'id', contents.id + '_' + CKEDITOR.tools.getNextNumber() );
 	},
@@ -266,12 +266,16 @@
 		var selected = this._.tabs[id];
 		selected[0].addClass( 'cke_dialog_tab_selected' );
+		selected[1].show();
+
 		// Place the bridge just under the selected tab. Count 1px left and right
 		// of the tab as border space.
-		bridge.setStyles(
-				{
-					left : ( selected[0].getFirst().$.offsetLeft + 17 || 0 ) + 'px',
-					width : ( selected[0].getFirst().$.offsetWidth - 2 || 0 ) + 'px'
-				});
-		selected[1].show();
+		setTimeout( function()
+			{
+				bridge.setStyles(
+						{
+							left : ( selected[0].getFirst().$.offsetLeft + 17 || 0 ) + 'px',
+							width : ( selected[0].getFirst().$.offsetWidth - 2 || 0 ) + 'px'
+						});
+			}, 0 );
 	},
 
Index: /CKEditor/branches/prototype/_source/plugins/dialogui/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/dialogui/plugin.js	(revision 2495)
+++ /CKEditor/branches/prototype/_source/plugins/dialogui/plugin.js	(revision 2496)
@@ -193,11 +193,8 @@
 			var innerHTML = function()
 			{
-				return [ '<tbody><tr><td class="cke_dialog_ui_button_txt">', CKEDITOR.tools.htmlEncode( elementDefinition.label ),
+				return [ '<tbody><tr><td class="cke_dialog_ui_button_txt">',
+					   CKEDITOR.tools.htmlEncode( elementDefinition.label ),
 					   '</td></tr></tbody>' ].join( '' );
 			};
-
-			if ( !window.debugButtons )
-				window.debugButtons = [];
-			debugButtons.push(this);
 
 			// Add OnClick event to this input.
@@ -210,5 +207,6 @@
 			dialog.on( 'load', function( eventInfo )
 					{
-						this.getElement().on( 'mousedown', function( evt )
+						var element = this.getElement();
+						element.on( 'mousedown', function( evt )
 							{
 								// Change styles to indicate the button is being clicked.
@@ -219,4 +217,8 @@
 								CKEDITOR.ui.dialog.button._.activeButton = [ me, target ];
 							});
+
+						// IE BUG: Padding attributes are ignored for <td> cells.
+						if ( CKEDITOR.env.ie )
+							element.getChild( [0, 0, 0] ).$.innerHTML += '';
 
 						if ( !eventInfo.data.buttonHandlerRegistered )
