[ 4 posts ]

Brandon Thomas

  • Username: BNThomas
  • Joined: Tue Oct 05, 2010 5:40 am
  • Posts: 4
  • IRC: Wolfwood
  • Offline
  • Profile
Tags:

Drag & Drop with Layout Manager

Post Posted: Fri Oct 15, 2010 6:30 am
+0-
Hi,
I have the following components in my website:
Drag & Drop
Layout Manager
Rich Text Editor
Menu
Accordion Menu (http://www.i-marco.nl/weblog/yui-accordion/)

The items in the accordion menu are drag&drop-able and I want to drag them to the editor. The items drag just fine, but once they leave the accordion menu they're behind everything else so you can't see them. The accordion menu is in the left panel of my full page layout and the editor is in the center. How would I make the draggable item's show above everything else? I've already tried the yui example on the site where they set the zIndex of the dragging item to 999 but it doesn't work in this case for some reason

Thanks,

BNThomas

K o v a c s

  • Username: Kovacs
  • Joined: Wed Feb 11, 2009 8:55 am
  • Posts: 100
  • Location: The Biggest Little City in the World
  • Offline
  • Profile
Tags:

Re: Drag & Drop with Layout Manager

Post Posted: Fri Oct 15, 2010 1:47 pm
+0-
BNThomas wrote:
How would I make the draggable item's show above everything else?
By adjusting the z-index--
BNThomas wrote:
I've already tried the yui example on the site where they set the zIndex of the dragging item to 999 but it doesn't work in this case for some reason
Well, something(s) must have a z-index > 999, right?

It would help your case (meaning you're more likely to get a meaningful response) if you posted a publicly accessible URL to your code so it could be inspected with FireBug (or equivalent)--someone here may see something you missed.

Brandon Thomas

  • Username: BNThomas
  • Joined: Tue Oct 05, 2010 5:40 am
  • Posts: 4
  • IRC: Wolfwood
  • Offline
  • Profile
Tags:

Re: Drag & Drop with Layout Manager

Post Posted: Fri Jan 07, 2011 7:06 am
+0-
I figured out that if you use a proxy, it will let the proxy over the layout manager, but if you don't use a proxy it won't go outside the bounds of the panel that it's in.

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: Drag & Drop with Layout Manager

Post Posted: Fri Jan 07, 2011 7:29 am
+0-
The real issue is that Layout Manager uses the "overflow: hidden/scroll" CSS rules to maintain the look/feel that is expected. So, if a draggable item is located inside one of these containers, it will not be able to escape. The proper solution is to use DDProxy, since the proxy element lives outside of the overflowed container.
  [ 4 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum