This isn't supported currently, but sounds like a really interesting idea.
My guess it it will actually take building in support for % resizing, which
has been discussed before, but not worked on as far as I know. You could
enter a feature request ticket here:

http://dev.jqueryui.com/newticket (note: requires registration)

You also may want to start a thread on the dev list:

http://groups.google.com/group/jquery-ui-dev

Thanks.

- Richard

On Thu, Apr 2, 2009 at 4:09 PM, Charlie Park <[email protected]> wrote:

>
> I'm trying to set up a div to be draggable and resizable, on a grid.
> Think of Google's Calendar, where events can be dragged from one day
> to another, or spread across days, or resized within a specific day.
> That sort of thing.
>
> The problem is that all of the documentation dealing with the "grid"
> property talk about it only in terms of pixels. But my layout has the
> events on a calendar whose days are a percentage of the total screen.
> That is, they're a fluid width. I'd like for the elements to snap to
> the correct size -- 1 day = 13.25%; 2 days = 26.5%; 3 days = 39.75%; 4
> days = 53% and so on. But "grid: [13.25%, 1]" doesn't work.
>
> I know it can handle math ([100 * 2, 10] works) ... is there a way to
> pass variables into that grid definition? Or to define it with
> percentages?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to