Browse Source

REPORT-113978 修复newui自动缩放导致的界面过大

fbp-1.0
vito 3 months ago
parent
commit
d9289e9529
  1. 4
      designer-base/src/main/java/com/fr/design/data/tabledata/datacenter/JxTableDataNamePane.java

4
designer-base/src/main/java/com/fr/design/data/tabledata/datacenter/JxTableDataNamePane.java

@ -1,5 +1,6 @@
package com.fr.design.data.tabledata.datacenter;
import com.fine.theme.utils.FineUIScale;
import com.fr.design.dialog.BasicDialog;
import com.fr.design.dialog.BasicPane;
import com.fr.design.dialog.BasicPane.NamePane;
@ -61,7 +62,8 @@ public class JxTableDataNamePane extends NamePane {
*/
public static Dimension calculatePaneDimension() {
DesignerFrame parent = DesignerContext.getDesignerFrame();
return new Dimension((int) (parent.getWidth() * 0.8), (int) (parent.getHeight() * 0.9));
return new Dimension((int) (FineUIScale.unscale(parent.getWidth()) * 0.8),
(int) (FineUIScale.unscale(parent.getHeight()) * 0.9));
}
}

Loading…
Cancel
Save