You can make these elements draggable by overriding the cancel option: http://docs.jquery.com/UI/Draggable#option-cancel
Notice the default is ':input,option' canceling any drag that starts on a form field. This is because typically you want to allow default mouse interaction on these elements, for clicking and text selection. In your case, just set cancel to null, false, or ''. - Richard On Fri, Dec 18, 2009 at 1:10 PM, Robin <[email protected]>wrote: > Hi, > > I've been working on a custom UI for an application, and to prevent me > having to deal with every crazy user request for layout changes, made > it customisable. > > Works fine for divs etc, I can layout the the various objects that > make up the UI, click my edit button that makes anything that needs to > be draggable, draggable and then save the positions to a database for > the next time the user pulls up that form. > > Except ... textareas, buttons and input fields all seem to be a > problem ... wrapping them in a <div> block produces a div that is the > same size as the button, so you still can't get a handle to drag it > with ... I suppose I could pad out the div and click just off the side > of the button to drag, but then it would be tricky to know which > button you were about to pick up when trying to move one button in a > block of buttons ... > > has anyone else got dragging to work on buttons? I suspect the button > is stealign focus ... but i don't really know. > > -- > > 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]<jquery-ui%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en. > > > -- 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.
