int (ComponentDragObject dragObject, int defaultSize) { Dimension initialSize = dragObject.getInitialSize(getContainer()); if (initialSize.height > 0 && initialSize.height < defaultSize) { return initialSize.height; } return defaultSize; }