Browse Source

Pull request #1647: REPORT-31219 设计器打印边距需要支持负数设置

Merge in DESIGN/design from ~BRUCE.DENG/design:release/10.0 to release/10.0

* commit '952f9ee6a277c2b636adfae5f1c8abdabf833905':
  REPORT-31219 设计器打印边距需要支持负数设置
feature/big-screen
Bruce.Deng 5 years ago
parent
commit
f51624f9a1
  1. 2
      designer-realize/src/main/java/com/fr/design/report/UnitFieldPane.java

2
designer-realize/src/main/java/com/fr/design/report/UnitFieldPane.java

@ -67,7 +67,7 @@ public class UnitFieldPane extends JPanel {
this.unitType = unitType; this.unitType = unitType;
valueSpinner = new UIBasicSpinner(new SpinnerNumberModel(0.0, 0.0, Double.MAX_VALUE, 1.0)); valueSpinner = new UIBasicSpinner(new SpinnerNumberModel(0.0, Integer.MIN_VALUE, Double.MAX_VALUE, 1.0));
textField = ((JSpinner.DefaultEditor) valueSpinner.getEditor()).getTextField(); textField = ((JSpinner.DefaultEditor) valueSpinner.getEditor()).getTextField();
textField.setColumns(OperatingSystem.isWindows() ? TEXT_FIELD_COLUMNS_WINDOWS : TEXT_FIELD_COLUMNS); textField.setColumns(OperatingSystem.isWindows() ? TEXT_FIELD_COLUMNS_WINDOWS : TEXT_FIELD_COLUMNS);
InputEventBaseOnOS.addBasicEditInputMap(textField); InputEventBaseOnOS.addBasicEditInputMap(textField);

Loading…
Cancel
Save