|
|
|
@ -113,12 +113,12 @@ public abstract class BasicScrollPane<T> extends BasicBeanPane<T>{
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 插入图表后单元格元素使用cardLayout布局,需要滚动效果获取高度在子类中重新计算 |
|
|
|
|
* 插入图表后单元格元素使用cardLayout布局,获取可视窗口高度用于判断面板是否需要滚动效果 |
|
|
|
|
* |
|
|
|
|
* @return height |
|
|
|
|
* @return 可见区域的高度 |
|
|
|
|
*/ |
|
|
|
|
protected int getMaxHeight(){ |
|
|
|
|
return getHeight(); |
|
|
|
|
return getVisibleRect().height; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected class BarLayout implements LayoutManager { |
|
|
|
|