Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical and Horizontal DD Layouts cannot handle child Vertical or Horizontal layouts #53

Open
TDHewson opened this issue Mar 17, 2016 · 1 comment

Comments

@TDHewson
Copy link

I encountered and issue whereby a DDVerticalLayout I was using contained components that had VerticalLayouts (not the dragdrop variants) within them. Whenever a drag operation was made, the client component would attempt determine the index of the drop area; in doing this, it would allocate the Slot object of the sub-VerticalLayout as the drop component and - because the sub-VerticalLayout was not a component of the DDVerticalLayout) - it would resolve the drop component as the DDVerticalLayout with a dropIndex of -1.

Attached is a demonstration class to show this (it will need to become a .java file and be added to a UI); using this code I was unable to drag number 3 between number 1 and 2 - it would always be determined on the client side to be at the top of the container.

DDVerticalLayoutTest.txt

The same behaviour occurs with HorizontalLayouts - it's the underlying Slot class (common to both Vertical and HorizontalLayouts) that is discovered in the client code (VDDVerticalLayoutDropHandler).

@a-schild
Copy link
Contributor

@TDHewson when I do the test with the DefaultVerticalLayoutDropHandler which is included, I'm able to drop the components at the correct places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants