Bug Tracker

Opened 15 years ago

Closed 13 years ago

#2525 closed enhancement (invalid)

Standardised way to pass coordinates to plugins.

Reported by: xover Owned by: rworth
Priority: minor Milestone:
Component: ui Version:
Keywords: Cc:
Blocked by: Blocking:


Looking at Draggable's cursorAt and Dialog's position options I note that they use different ways to pass a set of coordinates to the function. Dialog uses an array of offsets from top left, where Draggable uses a hash of either {top: n, left: m} or {bottom: n, right: m} (etc.).

There should probably be a common way to pass coordinates to plugins; possibly by making Draggable's way the default with Dialog's way as a convenience shortcut. Dialog's method can also be extended to allow negative offsets to be relative to the bottom and right edges.

Change History (5)

comment:1 Changed 15 years ago by rworth

I recommend that both could accept either an array [x, y] or a hash {top, bottom, left, right}

comment:2 Changed 15 years ago by paul

Owner: changed from paul to rworth

Draggables is updated to also take an array now Could you please continue with dialog?

comment:3 Changed 15 years ago by paul

Priority: majorminor

To make it easier to update the values later on internal API wise, I suggest to use hashes only.

comment:4 Changed 15 years ago by paul

Type: bugenhancement

comment:5 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

This should be filed in the UI bug tracker if still relevant.


Note: See TracTickets for help on using tickets.