Browse Source

Merge pull request #28 in BA/design from ~VITO/design:咨询窗接口 to dev

* commit 'c1525c860620ae610801ebaf39170024c22ad4fb':
  窗口缩放到合适的外宽高
  点击链接后能接着使用关闭脚本
master
richie 9 years ago
parent
commit
1019706a1f
  1. 6
      designer/src/com/fr/design/mainframe/bbs/BBSDialog.java

6
designer/src/com/fr/design/mainframe/bbs/BBSDialog.java

@ -31,8 +31,8 @@ public class BBSDialog extends UIDialog {
private static final int WIDTH = 600;
private static final int HEIGHT = 400;
private static final int OUTER_WIDTH = 605;
private static final int OUTER_HEIGHT = 428;
private static final int OUTER_WIDTH = 600;
private static final int OUTER_HEIGHT = 400;
private JFXPanel jfxPanel;
@ -108,6 +108,8 @@ public class BBSDialog extends UIDialog {
@Override
public void changed(ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) {
if (newValue == Worker.State.SUCCEEDED){
JSObject obj = (JSObject) eng.executeScript("window");
obj.setMember("BBSWebBridge", BBSDialog.this);
setVisible(true);
}
}

Loading…
Cancel
Save