@ -6,7 +6,7 @@ import com.fr.common.inputevent.InputEventBaseOnOS;
import com.fr.design.cell.bar.DynamicScrollBar ;
import com.fr.design.cell.bar.DynamicScrollBar ;
import com.fr.design.event.TargetModifiedEvent ;
import com.fr.design.event.TargetModifiedEvent ;
import com.fr.design.event.TargetModifiedListener ;
import com.fr.design.event.TargetModifiedListener ;
import com.fr.design.gui.ispinner.UIBasicSpinner ;
import com.fr.design.fit.DesignerUIModeConfig ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.mainframe.BaseJForm ;
import com.fr.design.mainframe.BaseJForm ;
import com.fr.design.mainframe.DesignerContext ;
import com.fr.design.mainframe.DesignerContext ;
@ -74,7 +74,7 @@ public class FormReportComponentComposite extends JComponent implements TargetMo
double value = jSliderContainer . getShowValue ( ) ;
double value = jSliderContainer . getShowValue ( ) ;
value = value > MAX ? MAX : value ;
value = value > MAX ? MAX : value ;
value = value < MIN ? MIN : value ;
value = value < MIN ? MIN : value ;
int resolution = ( int ) ( ScreenResolution . getScreenResolution ( ) * value / HUND ) ;
int resolution = ( int ) ( DesignerUIModeConfig . getInstance ( ) . getScreenResolution ( ) * value / HUND ) ;
setScale ( resolution ) ;
setScale ( resolution ) ;
// HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().setScale(resolution);
// HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().setScale(resolution);
}
}
@ -87,7 +87,7 @@ public class FormReportComponentComposite extends JComponent implements TargetMo
private void setScale ( int resolution ) {
private void setScale ( int resolution ) {
ElementCasePane elementCasePane = elementCaseDesigner . getEditingElementCasePane ( ) ;
ElementCasePane elementCasePane = elementCaseDesigner . getEditingElementCasePane ( ) ;
//网格线
//网格线
if ( resolution < ScreenResolution . getScreenResolution ( ) * MIN_TIME ) {
if ( resolution < DesignerUIModeConfig . getInstance ( ) . getScreenResolution ( ) * MIN_TIME ) {
elementCasePane . getGrid ( ) . setShowGridLine ( false ) ;
elementCasePane . getGrid ( ) . setShowGridLine ( false ) ;
} else {
} else {
elementCasePane . getGrid ( ) . setShowGridLine ( true ) ;
elementCasePane . getGrid ( ) . setShowGridLine ( true ) ;