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

Table in DDAbsoluteLayout dd fails partially when Table has DropHandler for its rows #38

Open
johannest opened this issue Aug 19, 2015 · 0 comments

Comments

@johannest
Copy link

Add table with DropHandler (see below) in the DDAbsoluteLayout and try to drag and drop it a short distance down from its header within the area that the Table originally fills: after drop the Table returns to original place. The reason is probably that Table thinks that you are trying to drag and drop its rows even though you dragged from its header.

final Table t = new Table();
        t.setWidth("300px");
        t.setHeight("300px");
        t.addContainerProperty("test", String.class, null);
        t.addContainerProperty("asdas", String.class, null);
        t.addItem(new String[]{"sss","ssssss"}, "asdasdsa");

        t.setDragMode(TableDragMode.ROW);
        t.setDropHandler(new DropHandler() {

            @Override
            public AcceptCriterion getAcceptCriterion() {
                return AcceptItem.ALL;
            }

            @Override
            public void drop(DragAndDropEvent dropEvent) {

            }
        });
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

1 participant