r1472 - branches/bxe_2_0/js
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Tue May 16 16:55:33 2006
New Revision: 1472
Modified:
branches/bxe_2_0/js/widget.js
Log:
fix ugly bug with dissapearing cursor
Modified: branches/bxe_2_0/js/widget.js
==============================================================================
--- branches/bxe_2_0/js/widget.js (original)
+++ branches/bxe_2_0/js/widget.js Tue May 16 16:55:33 2006
@@ -69,7 +69,15 @@
}
Widget.prototype.hide = function () {
+ var sel = window.getSelection();
+
+ if ( sel.anchorNode.compareDocumentPosition(this.node) & Node.DOCUMENT_POSITION_CONTAINS) {
+ sel.collapse(document.documentElement.firstChild, 0);
+ }
+
this.node.style.display = 'none';
+
+ //
}
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs