Browse Source

无jira 提供弹窗的尺寸设置接口

fbp-1.0
Levy.Xie-解安森 4 months ago
parent
commit
206ac2196a
  1. 19
      designer-base/src/main/java/com/fr/design/dialog/BasicDialog.java

19
designer-base/src/main/java/com/fr/design/dialog/BasicDialog.java

@ -52,6 +52,15 @@ public abstract class BasicDialog extends UIDialog {
super.setSize(FineUIScale.scale(d.width), FineUIScale.scale(d.height));
}
/**
* 设置对话框大小,本方法不进行主动缩放
*
* @param d 对话框尺寸
*/
protected void setBasicDialogSizeNoScale(Dimension d) {
super.setSize(FineUIScale.scale(d.width), FineUIScale.scale(d.height));
}
/**
* 设置对话框大小方法内已进行dpi适配传参无需考虑dpi适配
*
@ -62,6 +71,16 @@ public abstract class BasicDialog extends UIDialog {
setBasicDialogSize(new Dimension(w, h));
}
/**
* 设置对话框大小,本方法不进行主动缩放
*
* @param w 宽度
* @param h 高度
*/
protected void setBasicDialogSizeNoScale(int w, int h) {
setBasicDialogSizeNoScale(new Dimension(w, h));
}
@Override
public void setSize(Dimension d) {
throw new UnsupportedOperationException();

Loading…
Cancel
Save