r1559 - branches/bxe_2_0/js

[email protected] Fri, 20 Oct 2006 14:42:21 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Fri Oct 20 14:42:19 2006
New Revision: 1559

Modified:
   branches/bxe_2_0/js/widget.js
Log:
next try with scrollable popups

Modified: branches/bxe_2_0/js/widget.js
==============================================================================
--- branches/bxe_2_0/js/widget.js	(original)
+++ branches/bxe_2_0/js/widget.js	Fri Oct 20 14:42:19 2006
@@ -63,6 +63,13 @@
 			
 	}
 	
+	if (this.node.offsetTop < 0) {
+		this.node.style.top = 0 + 'px';
+		this.node.style.overflow = 'auto';
+	} else {
+		this.node.style.overflow = 'hidden';
+	}
+	
 		
 	var right = (this.node.offsetLeft + this.node.offsetWidth);
 	if (right > (window.innerWidth  + window.scrollX)) {
@@ -72,12 +79,7 @@
 			
 			this.node.style.left = (this.node.offsetLeft - (right - (window.innerWidth + window.scrollX))) + "px";
 	}
-	if (this.node.offsetHeight > window.innerHeight) {
-		this.node.style.overflow = 'auto';
-		
-	} else {
-		this.node.style.overflow = 'hidden';
-	}
+	
 	
 
 	
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs