return preferredHeight;
}
@Override
public Dimensions getPreferredSize() {
Expander expander = (Expander)getComponent();
Component content = expander.getContent();
Dimensions titleBarSize = titleBarTablePane.getPreferredSize();
int preferredWidth = titleBarSize.width;
int preferredHeight = titleBarSize.height;
if (content != null) {
Dimensions contentSize = content.getPreferredSize();
preferredWidth = Math.max(contentSize.width + (padding.left + padding.right),
preferredWidth);
if (expander.isExpanded()
|| expandTransition != null) {
// Title bar border is only drawn when expander is expanded
// or expanding
preferredHeight += 1;