Infusion 0.5 - Reorderer problem

nicolaas.matthijs at caret.cam.ac.uk nicolaas.matthijs at caret.cam.ac.uk
Sun Oct 5 11:41:37 UTC 2008


Hi,

I just tried to update my codebase from the Fluid Infusion 0.5 Beta to the
Fluid Infusion 0.5 and am experiencing some problems with the Reorderer.

I get the following error during the load of my page in Firefox 2:

thatReorderer.selectableContext has no properties
[Break on this error] thatReorderer.selectableContext.selectables =
thatReorderer.dom.fast...
Reorderer.js (line 512


This is the code I am using:

======================

var grabHandleFinder, createAvatar, options;

grabHandleFinder = function(item){
  return jQuery("[id=draghandle_" + item.id + "]");
};

createAvatar = function(el){
  var div = document.createElement("div");
  var element = $(el);
  div.style.width = element.width() + "px";
  div.style.height = element.height() + "px";
  div.innerHTML = el.innerHTML;
  div.style.backgroundColor = "#EEEEEE";
  div.className = "widget_dragging";
  return div;
};

options = {
  styles:  {
    mouseDrag: "orderable-mouse-drag",
    dropMarker: "orderable-drop-marker-box",
    avatar: "orderable-avatar-clone"
  },
  selectors: {
    columns: ".groupWrapper",
    modules: ".widget1",
    grabHandle: grabHandleFinder,
  },
  listeners: {
    afterMove: saveState
  },
  avatarCreator: createAvatar
};

fluid.reorderLayout("#widgetscontainer", options);

===================================

I've seen this error coming through on one of the Fluid chat logs
(http://wiki.fluidproject.org/display/fluid/fluid-work+IRC+Logs-2008-09-25),
but I can't really find the solution there.

Any idea what's going wrong ?

Nicolaas

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the fluid-work mailing list