Index: /FCKeditor/branches/developers/martinkou/editor/plugins/dragresizetable/fckplugin.js
===================================================================
--- /FCKeditor/branches/developers/martinkou/editor/plugins/dragresizetable/fckplugin.js	(revision 461)
+++ /FCKeditor/branches/developers/martinkou/editor/plugins/dragresizetable/fckplugin.js	(revision 462)
@@ -442,6 +442,15 @@
 			paddingBar.style.opacity = 0.1 ;
 		var offset = FCKDragTableHandler._GetDocumentPosition( window, FCK.EditingArea.IFrame ) ;
-		paddingBar.style.top = ( offset.y + FCKDragTableHandler._GetWindowPosition( w, table ).y ) + "px" ;
-		paddingBar.style.height = table.offsetHeight + "px" ;
+		var tablePos = FCKDragTableHandler._GetWindowPosition( w, table ) ;
+		var barHeight = table.offsetHeight ;
+		var barTop = offset.y + tablePos.y ;
+		// Do not let the resize bar intrude into the toolbar area.
+		if ( tablePos.y < 0 )
+		{
+			barHeight += tablePos.y ;
+			barTop -= tablePos.y ;
+		}
+		paddingBar.style.top = barTop + "px" ;
+		paddingBar.style.height = barHeight + "px" ;
 		var bw = parseInt( table.border ) ;
 		if ( bw != bw )
@@ -455,5 +464,5 @@
 		var filler = paddingBar.getElementsByTagName( "img" )[0] ;
 		filler.style.width = paddingBar.offsetWidth + "px" ;
-		filler.style.height = paddingBar.offsetHeight + "px" ;
+		filler.style.height = barHeight + "px" ;
 
 		barWidth = Math.max( bw, cs, 3 ) ;
@@ -469,5 +478,5 @@
 		visibleBar.style.backgroundColor = "blue" ;
 		visibleBar.style.width = barWidth + "px" ;
-		visibleBar.style.height = table.offsetHeight + "px" ;
+		visibleBar.style.height = barHeight + "px" ;
 		visibleBar.style.left = "50px" ;
 		visibleBar.style.top = "0px" ;
