Infusion 0.5 - Reorderer problem

nicolaas.matthijs at caret.cam.ac.uk nicolaas.matthijs at caret.cam.ac.uk
Sun Oct 5 18:50:10 UTC 2008


Thanks for the response Antranig. I have now found out that I had some
old version of the Fluid Keyboard a11y plugin included somewhere. If I
removed that one, it started working ...

But I do see a different problem now. I am able to drag portlets around,
but if I drop one, and then immediately try to drag the same one again,
nothing happens and I get the following error :

========

handlePos has no properties
[Break on this error] var handleMidX = handlePos[0] + handleWidth / 2;
GeometricManager.... (line 329)

========

Any idea ?

Thanks,

Nicolaas

> Quoting antranig at caret.cam.ac.uk:
>
> From following the chat logs you posted, it does seem that this problem
> is a naming collision between our keyboard a11y "selectable" plugin and
> a recent development in JQuery UI. Since JQuery UI plugins are not
> scoped in any way this is a sort of difficulty which can happen :P
> At the moment the solution would seem to be do drop back to a version
> of JQuery UI (probably 1.5.1?) before their "selectable" was introduced,
> or perhaps modularise your inclusion so that you do not take in the part
> of JQuery UI which defines their "selectable". Could you paste in here
> your complete list of Javascript includes (with version numbers if
> possible)?
> We will be renaming our plugin for the next release... but this all goes
> to show the value of proper namespacing :)
>
> Cheers,
> A.
>
> Quoting nicolaas.matthijs at caret.cam.ac.uk:
>
> > 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.
> >
> > _______________________________________________
> > fluid-work mailing list
> > fluid-work at fluidproject.org
> > http://fluidproject.org/mailman/listinfo/fluid-work
> >
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>




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




More information about the fluid-work mailing list