Skip to content

Drop inside other layouts does misplace drop at end of components #58

Description

@a-schild

When the components which are placed inside a DDxxxLayout are themself containers, the drop can be done inside such a layout.
The result is then, that the droped component is placed at the end of the layout and not in the place of the drop.

Here a example screenshot where the DDCssLayout is used, and the components to drag&drop are VerticalLayouts with two button on them.

As long as we drag it over the VerticalLayouts it works fine, but when the drop indicator shuffles inside the VerticalLayouts things get messy.

Sample code with the default DefaultCssLayoutDropHandler drop handler active

    private class DragComponent extends VerticalLayout
    {
        public DragComponent(int i)
        {
            setMargin(true);
            setHeight(10, Unit.EM);
            setWidth(10, Unit.EM);

            Button button1= new Button("Panel "+i);
            addComponent(button1);
            Button button2= new Button("Button2");
            addComponent(button2);
        }
    }

mozilla firefox_2016-04-15_15-54-36

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions