Dimension minimum = super.getMinimumSize();
if (minimum == null) {
minimum = new Dimension(10,10);
}
ScrollList scrollList = (ScrollList)underlyingComponent;
List<ListElement> items = scrollList.getElementList();
// TF:19/07/2009:The size for an empty list or a null list is 80 pixels in Forte, including the scrollbar
if (items == null || items.size() == 0) {
minimum.width = 80;
}
else {
minimum.width = scrollList.getWidthForData();
if (this.verticalScrollBar.isVisible()) {
minimum.width += this.verticalScrollBar.getWidth();
}
}
// minimum.width = Math.max(minimum.width, ((ScrollList)((JViewport)this.getComponent(0)).getComponent(0)).getWidthForModel());