Browse Source

REPORT-2897 9.0设计器修改

缩放条部分
master
MoMeak 8 years ago
parent
commit
cb344ec64a
  1. 4
      designer_form/src/com/fr/design/mainframe/FormArea.java

4
designer_form/src/com/fr/design/mainframe/FormArea.java

@ -155,7 +155,9 @@ public class FormArea extends JComponent implements ScrollRulerComponent {
@Override @Override
public void insertUpdate(DocumentEvent e) { public void insertUpdate(DocumentEvent e) {
// slidePane.getShowVal().getDocument() // slidePane.getShowVal().getDocument()
double value = slidePane.getshowValue(); double value = Integer.parseInt(slidePane.getShowVal().getText().substring(0, slidePane.getShowVal().getText().indexOf("%")));
value = value>400 ? 400 : value;
value = value<10 ? 10 : value;
reCalculateRoot(value, true); reCalculateRoot(value, true);
JTemplate form = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); JTemplate form = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate();
if(form != null){ if(form != null){

Loading…
Cancel
Save