* @param event the event to log
*/
public void onDragEnd(DragEndEvent event) {
WSTab tab = (WSTab) event.getContext().draggable;
WSTabPanel panel = layout.tabPanel;
/**
* If the tab has been dragged outside the boundaries, we need to catch it, so it doesn't get thrown
* away.
*/
if (panel.getWidgetIndex(tab.getWidgetRef()) == -1) {
panel.add(panel.getWidget(panel.getWidgetCount()-1),tab);
}
}