|
|
|
@ -456,12 +456,17 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> {
|
|
|
|
|
grid.setHorizontalExtent(GridUtils.getExtentValue(0, columnWidthList, grid.getWidth(), resolution)); |
|
|
|
|
elementCasePane.getGrid().updateUI(); |
|
|
|
|
//更新Column和Row
|
|
|
|
|
((DynamicScrollBar) elementCasePane.getVerticalScrollBar()).setDpi(resolution); |
|
|
|
|
((DynamicScrollBar) elementCasePane.getHorizontalScrollBar()).setDpi(resolution); |
|
|
|
|
DynamicScrollBar verticalScrollBar = (DynamicScrollBar) elementCasePane.getVerticalScrollBar(); |
|
|
|
|
DynamicScrollBar horizontalScrollBar = (DynamicScrollBar) elementCasePane.getHorizontalScrollBar(); |
|
|
|
|
verticalScrollBar.setDpi(resolution); |
|
|
|
|
horizontalScrollBar.setDpi(resolution); |
|
|
|
|
elementCasePane.getGridColumn().setResolution(resolution); |
|
|
|
|
elementCasePane.getGridColumn().updateUI(); |
|
|
|
|
elementCasePane.getGridRow().setResolution(resolution); |
|
|
|
|
elementCasePane.getGridRow().updateUI(); |
|
|
|
|
//Yvan:更新滚动条值(主要是为了重置滚动条里的BoundedRangeModel的extent值),使之随着界面缩放
|
|
|
|
|
verticalScrollBar.setValue(verticalScrollBar.getValue()); |
|
|
|
|
horizontalScrollBar.setValue(horizontalScrollBar.getValue()); |
|
|
|
|
} |
|
|
|
|
if (polyDezi != null) { |
|
|
|
|
polyDezi.setResolution(resolution); |
|
|
|
|