|
|
@ -1206,4 +1206,15 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
super.whenClose(); |
|
|
|
super.whenClose(); |
|
|
|
reportComposite.doRemoveAction(); |
|
|
|
reportComposite.doRemoveAction(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 更新滚动条的值(主要是为了重置滚动条里的BoundedRangeModel的extent值),使滚动条的宽度随着界面缩放而变化 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
protected void updateScrollValue() { |
|
|
|
|
|
|
|
ElementCasePane elementCasePane = reportComposite.centerCardPane.editingComponet.elementCasePane; |
|
|
|
|
|
|
|
DynamicScrollBar verticalScrollBar = (DynamicScrollBar) elementCasePane.getVerticalScrollBar(); |
|
|
|
|
|
|
|
DynamicScrollBar horizontalScrollBar = (DynamicScrollBar) elementCasePane.getHorizontalScrollBar(); |
|
|
|
|
|
|
|
verticalScrollBar.setValue(verticalScrollBar.getValue()); |
|
|
|
|
|
|
|
horizontalScrollBar.setValue(horizontalScrollBar.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|