Browse Source

REPORT-80745 FR11新自适应-在界面有缩放比例时,报表块单元格宽度会显示缩放的像素值

bugfix/11.0
kerry 2 years ago
parent
commit
b0c5c6660b
  1. 13
      designer-realize/src/main/java/com/fr/grid/AbstractGridHeaderMouseHandler.java

13
designer-realize/src/main/java/com/fr/grid/AbstractGridHeaderMouseHandler.java

@ -305,11 +305,14 @@ public abstract class AbstractGridHeaderMouseHandler extends MouseInputAdapter {
StringBuilder sb = new StringBuilder();
sb.append(String.format("%.2f", new Double(len)))
.append('/').append(String.format("%.2f", new Double(tlen)))
.append(unit).append('(')
.append((int)(unitValue.toPixD(resolution))).append('/')
.append((int)(totalUnitValue.toPixD(resolution)))
.append(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Px"))
.append(')');
.append(unit);
if(!DesignerUIModeConfig.getInstance().simulateWebUIMode()){
sb.append('(')
.append((int)(unitValue.toPixD(resolution))).append('/')
.append((int)(totalUnitValue.toPixD(resolution)))
.append(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Px"))
.append(')');
}
return sb.toString();
}

Loading…
Cancel
Save