Browse Source

REPORT-42540 更新一下

feature/big-screen
Yvan 4 years ago
parent
commit
d04c3e3bfd
  1. 6
      designer-realize/src/main/java/com/fr/design/mainframe/ReportComponentComposite.java

6
designer-realize/src/main/java/com/fr/design/mainframe/ReportComponentComposite.java

@ -6,7 +6,6 @@ import com.fr.design.designer.EditingState;
import com.fr.design.event.RemoveListener;
import com.fr.design.event.TargetModifiedListener;
import com.fr.design.file.HistoryTemplateListCache;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.gui.icontainer.UIModeControlContainer;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.grid.Grid;
@ -84,7 +83,10 @@ public class ReportComponentComposite extends JComponent implements RemoveListen
value = value > MAX ? MAX : value;
value = value < MIN ? MIN : value;
int resolution = (int) (ScreenResolution.getScreenResolution() * value / HUND);
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().setScale(resolution);
JTemplate<?, ?> template = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
if (template != null) {
template.setScale(resolution);
}
}
};

Loading…
Cancel
Save