r1551 - branches/bxe_2_0/plugins

[email protected] Wed, 18 Oct 2006 16:08:14 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Wed Oct 18 16:08:13 2006
New Revision: 1551

Modified:
   branches/bxe_2_0/plugins/ClipboardPasteDialog.js
Log:
size clipboard to screen size

Modified: branches/bxe_2_0/plugins/ClipboardPasteDialog.js
==============================================================================
--- branches/bxe_2_0/plugins/ClipboardPasteDialog.js	(original)
+++ branches/bxe_2_0/plugins/ClipboardPasteDialog.js	Wed Oct 18 16:08:13 2006
@@ -56,8 +56,18 @@
 	
 	mod.addItem("clipboard", "", "textarea");
 	mod.addItem("element", "", "select",null,_chooser,false);
+	var _modBox = document.getElementById("modalBoxclipboard");
+	
+	 mod.node.style.width = window.innerWidth - 150 + "px"; 
+	_modBox.style.width = window.innerWidth - 250 + "px"; 
+	
+	mod.node.style.height = window.innerHeight - 110 + "px"; 
+	_modBox.style.height= window.innerHeight - 190 + "px"; 
+	
+	
 	mod.show(100,50,"fixed");
-	document.getElementById("modalBoxclipboard").focus();
+	_modBox.focus();
+	
 	document.addEventListener("keypress", BxeTextClipboard_keyhandler, true);
 	
 }
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs