Jose Lopez
Jose Lopez

Reputation: 384

LibGdx removing actor from table, then reorder

Is there a easy way to remove a actor from a table and re order the table? without remaking the table? When I remove a actor from a table it shows a blank space where the actor was

actorInsideTable.addListiner(new ClickListener(){
   @Override
        public void clicked(InputEvent event, float x, float y) {
            super.clicked(event, x, y);
            actorInsideTable.remove();
        }
});

Upvotes: 3

Views: 554

Answers (1)

Eric
Eric

Reputation: 1297

After calling remove(), call the pack() method from the Table object.

Upvotes: 2

Related Questions