|
|
|
@ -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)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|