r1576 - branches/bxe_2_0/js

[email protected] Tue, 24 Oct 2006 23:06:53 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Tue Oct 24 23:06:52 2006
New Revision: 1576

Modified:
   branches/bxe_2_0/js/bxeNodeElements.js
Log:
check right document for cstyle


Modified: branches/bxe_2_0/js/bxeNodeElements.js
==============================================================================
--- branches/bxe_2_0/js/bxeNodeElements.js	(original)
+++ branches/bxe_2_0/js/bxeNodeElements.js	Tue Oct 24 23:06:52 2006
@@ -294,7 +294,12 @@
 	while (node) {
 		
 		if (node.nodeType == 1) {
-			c = node.getCStyle("display");
+			
+			if (node.ownerDocument != document) {
+				c = node.XMLNode._htmlnode.getCStyle("display");
+			} else {
+				c = node.getCStyle("display");
+			}
 			if  (c == "block" || c  == "table-row" ) {
 				return node;
 			}
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs