Create captions absolutely positioned.
authorJan Schneider <jan@horde.org>
Mon, 16 Mar 2009 15:41:00 +0000 (16:41 +0100)
committerJan Schneider <jan@horde.org>
Mon, 16 Mar 2009 15:44:25 +0000 (16:44 +0100)
imp/js/src/dragdrop.js

index 3311d35..2839bc7 100644 (file)
@@ -74,7 +74,7 @@ var DragDrop = {
         register: function(obj)
         {
             if (!this.div) {
-                this.div = new Element('DIV', { className: obj.options.classname }).hide();
+                this.div = new Element('DIV', { className: obj.options.classname }).setStyle({ position: 'absolute' }).hide();
                 $(document.body).insert(this.div);
                 document.observe('mousedown', this._mouseHandler.bindAsEventListener(this));
             }